diff --git a/compat/mingw.c b/compat/mingw.c index d7f9935637..3f91c790af 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -2287,7 +2287,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;