Set FLEXIBLE_ARRAY_MEMBER to empty for MSVC.
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 17 Jun 2011 22:22:03 +0000 (18:22 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 17 Jun 2011 22:22:03 +0000 (18:22 -0400)
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

index 56559162240acccd6366fa04b6406a4201fce4d4..3c38aa020045bd3e251d474f1531aec1e876e866 100644 (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 */