diff options
Diffstat (limited to 'src/ne_defs.h')
-rw-r--r-- | src/ne_defs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ne_defs.h b/src/ne_defs.h index 4283454..bd31257 100644 --- a/src/ne_defs.h +++ b/src/ne_defs.h @@ -58,8 +58,10 @@ typedef off_t ne_off_t; #define NE_PRIVATE __attribute__((visibility ("hidden"))) #endif #define ne_attribute_malloc __attribute__((malloc)) +#define ne_attribute_alloc_size(x) __attribute__((alloc_size(x))) #else #define ne_attribute_malloc +#define ne_attribute_alloc_size(x) #endif #if __GNUC__ > 3 #define ne_attribute_sentinel __attribute__((sentinel)) @@ -70,6 +72,7 @@ typedef off_t ne_off_t; #else #define ne_attribute(x) #define ne_attribute_malloc +#define ne_attribute_alloc_size(x) #define ne_attribute_sentinel #endif |