diff options
Diffstat (limited to 'include/psxtypes/compiler/__nt_compiler_gcc.h')
-rw-r--r-- | include/psxtypes/compiler/__nt_compiler_gcc.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/psxtypes/compiler/__nt_compiler_gcc.h b/include/psxtypes/compiler/__nt_compiler_gcc.h index b145698..5eb49a0 100644 --- a/include/psxtypes/compiler/__nt_compiler_gcc.h +++ b/include/psxtypes/compiler/__nt_compiler_gcc.h @@ -61,7 +61,6 @@ /* compiler attributes */ #define __attr_aligned__(x) __attribute__((__aligned__(x))) #define __attr_ptr_size_aligned__ __attr_aligned__(__SIZEOF_POINTER__) -#define __attr_section__(s) __attribute__((section(s))) #define __attr_packed__ __attribute__((__packed__)) #define __attr_export__ __attribute__((dllexport)) #define __attr_import__ __attribute__((dllimport)) @@ -79,6 +78,11 @@ #endif +/* named section support */ +#define __attr_section__(s) __attribute__((section(s))) +#define __attr_section_decl__(s) + + /* compiler-dependent assertions */ #define __assert_aligned_size(s,a) typedef char __assert##s [-(sizeof(s) % a)] #define __assert_struct_size(s1,s2) typedef char __assert##s1##s2 [sizeof(s2) -sizeof(s1)] |