Set FLEXIBLE_ARRAY_MEMBER to empty for MSVC.

Per gripe from Tom Lane. I have tested this with VC 2008, and assume
it will work with earlier versions.
This commit is contained in:
Andrew Dunstan 2011-06-17 18:22:03 -04:00
parent 68d977a737
commit ddef31c15c

View File

@ -53,7 +53,7 @@
(struct s)' as it overestimates the size. Use 'offsetof (struct s, d)'
instead. Don't use 'offsetof (struct s, d[0])', as this doesn't work with
MSVC and with C++ compilers. */
#define FLEXIBLE_ARRAY_MEMBER 1
#define FLEXIBLE_ARRAY_MEMBER
/* Define to 1 if you want National Language Support. (--enable-nls) */
/* #undef ENABLE_NLS */