From b2ca632f79af5413f0dce4a8910dd9ba96f779a8 Mon Sep 17 00:00:00 2001 From: Martin Haimberger Date: Thu, 24 Oct 2013 06:39:09 -0700 Subject: [PATCH] WINPR Void Fix c++ only allows only void to define empty parameter list typedef defines a new type therfore its not valid in c++ --- winpr/include/winpr/wtypes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/winpr/include/winpr/wtypes.h b/winpr/include/winpr/wtypes.h index 034c7e608..83458f531 100644 --- a/winpr/include/winpr/wtypes.h +++ b/winpr/include/winpr/wtypes.h @@ -132,7 +132,8 @@ typedef unsigned int ULONG32; typedef unsigned __int64 ULONG64; typedef wchar_t UNICODE; typedef unsigned short USHORT; -typedef void VOID, *PVOID, *LPVOID; +#define VOID void +typedef void *PVOID, *LPVOID; typedef void *PVOID64, *LPVOID64; typedef const void *LPCVOID; typedef unsigned short WORD, *PWORD, *LPWORD;