diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-04-27 08:11:56 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-04-27 08:12:24 -0700 |
commit | 0488b6e88b52bde4c69df38b40a32095e252ef22 (patch) | |
tree | 1d781a3b22a5b35007fba7d3078053ce6236a351 /lib/malloca.h | |
parent | e53a2bd78108425dc9dbf17b1aeece189f729068 (diff) | |
download | gnulib-0488b6e88b52bde4c69df38b40a32095e252ef22.tar.gz |
alignof, intprops, malloca: port better to IBM's C compiler
* lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
* lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
* lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
Diffstat (limited to 'lib/malloca.h')
-rw-r--r-- | lib/malloca.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/malloca.h b/lib/malloca.h index 7fa2b9fd25..4cc4e3fbb4 100644 --- a/lib/malloca.h +++ b/lib/malloca.h @@ -92,7 +92,7 @@ extern void * nmalloca (size_t n, size_t s); /* ------------------- Auxiliary, non-public definitions ------------------- */ /* Determine the alignment of a type at compile time. */ -#if defined __GNUC__ +#if defined __GNUC__ || defined __IBM__ALIGNOF__ # define sa_alignof __alignof__ #elif defined __cplusplus template <class type> struct sa_alignof_helper { char __slot1; type __slot2; }; |