Suuports clang compiler
[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 #ifndef anna_test_Request_hpp
6 #define anna_test_Request_hpp
7
8 #if IS_CLANG && ( __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L )
9 typedef struct {
10   long long __clang_max_align_nonce1
11       __attribute__((__aligned__(__alignof__(long long))));
12   long double __clang_max_align_nonce2
13       __attribute__((__aligned__(__alignof__(long double))));
14 } max_align_t;
15 #define __CLANG_MAX_ALIGN_T_DEFINED
16 #endif
17
18 #endif