Skip to content

Commit 791a07f

Browse files
Philip Oakleydscho
authored andcommitted
msvc: fix the declaration of the _REPARSE_DATA_BUFFER structure
GCC and MSVC disagree about using the GCC extension _ANONYMOUS_UNION. Simply skip that offending keyword when compiling with MSVC. Signed-off-by: Philip Oakley <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 768bbc8 commit 791a07f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compat/mingw.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2295,7 +2295,10 @@ typedef struct _REPARSE_DATA_BUFFER {
22952295
DWORD ReparseTag;
22962296
WORD ReparseDataLength;
22972297
WORD Reserved;
2298-
_ANONYMOUS_UNION union {
2298+
#ifndef _MSC_VER
2299+
_ANONYMOUS_UNION
2300+
#endif
2301+
union {
22992302
struct {
23002303
WORD SubstituteNameOffset;
23012304
WORD SubstituteNameLength;

0 commit comments

Comments
 (0)