summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-10-30 18:29:30 +0000
committerSteve Peters <steve@fisharerojo.org>2006-10-30 18:29:30 +0000
commitedb113cf5f89b7f57ad122b3821a9cf42cf08880 (patch)
treec1c3f1329fc62be292a2a0b365b680fe76919358 /win32/win32.c
parent1a147d384ccafb1ee40180084a4533d35538bfd1 (diff)
downloadperl-edb113cf5f89b7f57ad122b3821a9cf42cf08880.tar.gz
It seems only HWND__* is needed by MinGW g++.
p4raw-id: //depot/perl@29164
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index a0f9c0a884..b800ed6685 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