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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy