From 060877d483cfcbc0ede85059617be5ad7dae127a Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 29 Sep 2016 14:47:20 -0400 Subject: [PATCH] win: fix anonymous union syntax MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove use of the DUMMYUNIONNAME macro from our definitions of internal winapi anonymous unions. This macro was added to winternl.h in Windows SDK v7.0a in combination with a conditional definition of DUMMYUNIONNAME to either empty or `u` depending on compiler support. libuv doesn't support any compilers that lack anonymous unions, but does support compilers such as VS 2008 that complain about the presence of the DUMMYUNIONNAME identifier on an anonymous union because their winapi headers do not define the macro publicly. PR-URL: https://github.com/libuv/libuv/pull/1090 Reviewed-By: João Reis Reviewed-By: Colin Ihrig --- src/win/winapi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/winapi.h b/src/win/winapi.h index 16d9365c..341fcd08 100644 --- a/src/win/winapi.h +++ b/src/win/winapi.h @@ -4145,7 +4145,7 @@ typedef const UNICODE_STRING *PCUNICODE_STRING; struct { UCHAR DataBuffer[1]; } GenericReparseBuffer; - } DUMMYUNIONNAME; + }; } REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER; #endif @@ -4153,7 +4153,7 @@ typedef struct _IO_STATUS_BLOCK { union { NTSTATUS Status; PVOID Pointer; - } DUMMYUNIONNAME; + }; ULONG_PTR Information; } IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;