+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.
/* 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
/* 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