It seems only HWND__* is needed by MinGW g++.
Steve Peters [Mon, 30 Oct 2006 18:29:30 +0000 (18:29 +0000)]
p4raw-id: //depot/perl@29164

win32/win32.c

index a0f9c0a..b800ed6 100644 (file)
@@ -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