Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ddef31c

Browse files
committed
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.
1 parent 68d977a commit ddef31c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/pg_config.h.win32

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
(struct s)' as it overestimates the size. Use 'offsetof (struct s, d)'
5454
instead. Don't use 'offsetof (struct s, d[0])', as this doesn't work with
5555
MSVC and with C++ compilers. */
56-
#define FLEXIBLE_ARRAY_MEMBER 1
56+
#define FLEXIBLE_ARRAY_MEMBER
5757

5858
/* Define to 1 if you want National Language Support. (--enable-nls) */
5959
/* #undef ENABLE_NLS */

0 commit comments

Comments
 (0)