ANNA Suite  2020b
Multipurpose development suite for Telco applications
clang_specific.hpp
Go to the documentation of this file.
1 // ANNA - Anna is Not Nothingness Anymore //
2 // //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
4 // //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7 
8 
9 #ifndef anna_test_clang_specific_hpp
10 #define anna_test_clang_specific_hpp
11 
12 
13 // This is a Workaround for clang
14 // See more at: http://reviews.llvm.org/rL201729 and http://gcc.gnu.org/gcc-4.9/porting_to.html (cstddef changes)
15 // This file and its references should be removed when upgraded clang resources
16 
17 #if IS_CLANG && ( __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L )
18 typedef struct {
19  long long __clang_max_align_nonce1
20  __attribute__((__aligned__(__alignof__(long long))));
21  long double __clang_max_align_nonce2
22  __attribute__((__aligned__(__alignof__(long double))));
23 } max_align_t;
24 #define __CLANG_MAX_ALIGN_T_DEFINED
25 #endif
26 
27 #endif
28