From: Andrew Dunstan Date: Fri, 17 Jun 2011 22:22:03 +0000 (-0400) Subject: Set FLEXIBLE_ARRAY_MEMBER to empty for MSVC. X-Git-Tag: REL9_2_BETA1~1540 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ddef31c15c663626fc1804467f4c2ce420598796;p=thirdparty%2Fpostgresql.git 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. --- diff --git a/src/include/pg_config.h.win32 b/src/include/pg_config.h.win32 index 56559162240..3c38aa02004 100644 --- a/src/include/pg_config.h.win32 +++ b/src/include/pg_config.h.win32 @@ -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 */