diff --git a/compat/mingw.c b/compat/mingw.c index a1b0a034df..561667690d 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -2284,7 +2284,10 @@ typedef struct _REPARSE_DATA_BUFFER { DWORD ReparseTag; WORD ReparseDataLength; WORD Reserved; - _ANONYMOUS_UNION union { +#ifndef _MSC_VER + _ANONYMOUS_UNION +#endif + union { struct { WORD SubstituteNameOffset; WORD SubstituteNameLength;