From ddef31c15c663626fc1804467f4c2ce420598796 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Fri, 17 Jun 2011 18:22:03 -0400 Subject: [PATCH] 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. --- src/include/pg_config.h.win32 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/pg_config.h.win32 b/src/include/pg_config.h.win32 index 5655916224..3c38aa0200 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 */