From 62e84aa82107061f497c287982ba736f264c1e15 Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Thu, 3 Jul 2014 19:48:58 +0200 Subject: [PATCH] Fix #100. - The workaround for align_t in C++14 mode has been fixed in recent version of clang. - Does not apply to OS X (it uses libc++). --- triqs/utility/first_include.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/triqs/utility/first_include.hpp b/triqs/utility/first_include.hpp index e2206316..8b8ac45d 100644 --- a/triqs/utility/first_include.hpp +++ b/triqs/utility/first_include.hpp @@ -22,8 +22,8 @@ #define TRIQS_ARRAYS_FIRST_INCLUDE_PYTHON_H // clang but not libc++ -#if defined(__clang__) and !defined(_LIBCPP_VERSION) -// workaround an error in gcc stdlib +#if defined(__clang__) and !defined(_LIBCPP_VERSION) and (__clang_major__ <= 3) and (__clang_minor__ <= 4) and (__clang_patchlevel__ < 2) +// workaround an error in gcc stdlib, but corrected in clang 3.4.2 typedef long double max_align_t; #endif