/* To use the struct hack with N elements, declare the struct like this:
struct s { ...; t name[FLEXIBLE_ARRAY_MEMBER]; };
and allocate (offsetof (struct s, name) + N * sizeof (t)) bytes.
-
- This macro used to expand to something different on pre-C99 compilers.
- FIXME: Remove it, and remove all uses. */
-#define FLEXIBLE_ARRAY_MEMBER
+ IBM xlc 12.1 claims to do C99 but mishandles flexible array members. */
+#ifdef __IBMC__
+# define FLEXIBLE_ARRAY_MEMBER 1
+#else
+# define FLEXIBLE_ARRAY_MEMBER
+#endif
/* Use this to suppress gcc's `...may be used before initialized' warnings. */
#ifdef lint