]> code.delx.au - gnu-emacs/blobdiff - src/conf_post.h
progmodes/cc-fonts.el (c-font-lock-declarators): Remove check for
[gnu-emacs] / src / conf_post.h
index 6f6af3d3e02d246d87e25f63eb78b8146a90903d..a995acfd91546910d1008e9d32ae1efddf7f63a1 100644 (file)
@@ -309,10 +309,12 @@ extern void _DebPrint (const char *fmt, ...);
 /* 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