5672e47a7bcc7d0bf16d1e1eed57d40343d2296b
[anna.git] / include / anna / test / clang_specific.hpp
1 // This is a Workaround for clang
2 // See more at: http://reviews.llvm.org/rL201729 and http://gcc.gnu.org/gcc-4.9/porting_to.html (cstddef changes)
3 // This file and its references should be removed when upgraded clang resources
4
5  
6 #ifndef anna_test_clang_specific_hpp
7 #define anna_test_clang_specific_hpp
8
9 #if IS_CLANG && ( __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L )
10 typedef struct {
11   long long __clang_max_align_nonce1
12       __attribute__((__aligned__(__alignof__(long long))));
13   long double __clang_max_align_nonce2
14       __attribute__((__aligned__(__alignof__(long double))));
15 } max_align_t;
16 #define __CLANG_MAX_ALIGN_T_DEFINED
17 #endif
18
19 #endif
20