Skip to content

Commit e3d23f0

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 c2683f2 commit e3d23f0

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
@@ -2338,7 +2338,10 @@ typedef struct _REPARSE_DATA_BUFFER {
23382338
DWORD ReparseTag;
23392339
WORD ReparseDataLength;
23402340
WORD Reserved;
2341-
_ANONYMOUS_UNION union {
2341+
#ifndef _MSC_VER
2342+
_ANONYMOUS_UNION
2343+
#endif
2344+
union {
23422345
struct {
23432346
WORD SubstituteNameOffset;
23442347
WORD SubstituteNameLength;

0 commit comments

Comments
 (0)