diff options
author | Bruno Haible <bruno@clisp.org> | 2005-02-10 15:50:31 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:12:11 +0200 |
commit | e91fd0df0bb3a1883f56be9c97e4cb4ea6d52e2f (patch) | |
tree | 1b6ddee3c59ad861e02f386d453906a0d0a8fb0e /gettext-tools | |
parent | 1bb869570eecc7aa085abbbc09f72d93dda56139 (diff) | |
download | external_gettext-e91fd0df0bb3a1883f56be9c97e4cb4ea6d52e2f.zip external_gettext-e91fd0df0bb3a1883f56be9c97e4cb4ea6d52e2f.tar.gz external_gettext-e91fd0df0bb3a1883f56be9c97e4cb4ea6d52e2f.tar.bz2 |
Work around AIX compiler bug.
Diffstat (limited to 'gettext-tools')
-rw-r--r-- | gettext-tools/lib/ChangeLog | 5 | ||||
-rw-r--r-- | gettext-tools/lib/allocsa.h | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index e2a52f3..84b3b52 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,8 @@ +2005-02-10 Bruno Haible <bruno@clisp.org> + + * allocsa.h (sa_alignof): Define differently with AIX xlc, to avoid + a bug of this compiler on AIX 3.2.5 dealing with enums. + 2005-02-07 Bruno Haible <bruno@clisp.org> * c-strcase.h: New file, based on strcase.h. diff --git a/gettext-tools/lib/allocsa.h b/gettext-tools/lib/allocsa.h index 5ae49e5..dcc5e9b 100644 --- a/gettext-tools/lib/allocsa.h +++ b/gettext-tools/lib/allocsa.h @@ -1,5 +1,5 @@ /* Safe automatic memory allocation. - Copyright (C) 2003-2004 Free Software Foundation, Inc. + Copyright (C) 2003-2005 Free Software Foundation, Inc. Written by Bruno Haible <bruno@clisp.org>, 2003. This program is free software; you can redistribute it and/or modify @@ -81,6 +81,10 @@ extern void freesa (void *p); /* Work around a HP-UX 10.20 cc bug with enums constants defined as offsetof values. */ # define sa_alignof(type) (sizeof (type) <= 4 ? 4 : 8) +#elif defined _AIX + /* Work around an AIX 3.2.5 xlc bug with enums constants defined as offsetof + values. */ +# define sa_alignof(type) 4 #else # define sa_alignof(type) offsetof (struct { char __slot1; type __slot2; }, __slot2) #endif |