Skip to content

Commit 8395fec

Browse files
dschoGit for Windows Build Agent
authored andcommitted
fixup??? git-compat-util: add a test balloon for C99 support
This seems to be required to define `FLEX_ARRAY` in a manner that MSVC in C11 mode accepts. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 4248746 commit 8395fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-compat-util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
/*
4747
* See if our compiler is known to support flexible array members.
4848
*/
49-
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && (!defined(__SUNPRO_C) || (__SUNPRO_C > 0x580))
49+
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && !defined(_MSC_VER) && (!defined(__SUNPRO_C) || (__SUNPRO_C > 0x580))
5050
# define FLEX_ARRAY /* empty */
5151
#elif defined(__GNUC__)
5252
# if (__GNUC__ >= 3)

0 commit comments

Comments
 (0)