diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2018-03-14 18:17:51 +0300 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2018-03-14 18:17:51 +0300 |
commit | e494b560350cabef94126a4478096aae89ae35a0 (patch) | |
tree | 83df902988494e2b299423c9d5fd01e2d8e9467f /newlib/libc/include/sys/cdefs.h | |
parent | 134f93f313db95c394b925716717031a05b2a6d3 (diff) |
Fix alloc_align and alloc_size macros for multiple arguments
https://sourceware.org/ml/newlib/2018/msg00263.html
This is a follow-up to commit 4564b30f331a067e71b25308ac7c8a85ceb4b122.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/include/sys/cdefs.h')
-rw-r--r-- | newlib/libc/include/sys/cdefs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h index fc564a5c6..b3f8d1965 100644 --- a/newlib/libc/include/sys/cdefs.h +++ b/newlib/libc/include/sys/cdefs.h @@ -258,12 +258,12 @@ #define __section(x) __attribute__((__section__(x))) #endif #if __GNUC_PREREQ__(4, 3) || __has_attribute(__alloc_size__) -#define __alloc_size(x) __attribute__((__alloc_size__(x))) +#define __alloc_size(x) __attribute__((__alloc_size__ x)) #else #define __alloc_size(x) #endif #if __GNUC_PREREQ__(4, 9) || __has_attribute(__alloc_align__) -#define __alloc_align(x) __attribute__((__alloc_align__(x))) +#define __alloc_align(x) __attribute__((__alloc_align__ x)) #else #define __alloc_align(x) #endif |