From: Steve Peters Date: Mon, 30 Oct 2006 18:29:30 +0000 (+0000) Subject: It seems only HWND__* is needed by MinGW g++. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=edb113cf5f89b7f57ad122b3821a9cf42cf08880;p=p5sagit%2Fp5-mst-13.2.git It seems only HWND__* is needed by MinGW g++. p4raw-id: //depot/perl@29164 --- diff --git a/win32/win32.c b/win32/win32.c index a0f9c0a..b800ed6 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -4941,7 +4941,7 @@ win32_create_message_window() return CreateWindow("Static", "", 0, 0, 0, 0, 0, HWND_MESSAGE, 0, 0, NULL); } -#if defined(__MINGW32__) +#if defined(__MINGW32__) && defined(__cplusplus) #define CAST_HWND__(x) (HWND__*)(x) #else #define CAST_HWND__(x) x