mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Define FLEXIBLE_ARRAY_MEMBER for MSVC.
This commit is contained in:
parent
bfcb9328e5
commit
236a11dc65
@ -46,6 +46,15 @@
|
|||||||
/* Define to the default TCP port number as a string constant. */
|
/* Define to the default TCP port number as a string constant. */
|
||||||
#define DEF_PGPORT_STR "5432"
|
#define DEF_PGPORT_STR "5432"
|
||||||
|
|
||||||
|
/* Define to nothing if C supports flexible array members, and to 1 if it does
|
||||||
|
not. That way, with a declaration like `struct s { int n; double
|
||||||
|
d[FLEXIBLE_ARRAY_MEMBER]; };', the struct hack can be used with pre-C99
|
||||||
|
compilers. When computing the size of such an object, don't use 'sizeof
|
||||||
|
(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 to 1 if you want National Language Support. (--enable-nls) */
|
/* Define to 1 if you want National Language Support. (--enable-nls) */
|
||||||
/* #undef ENABLE_NLS */
|
/* #undef ENABLE_NLS */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user