summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-10-28 13:53:45 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-10-28 13:53:45 +0000
commit1c85e96a88f6bac005ba2c0b226e3ed81d5ca9cc (patch)
tree3ab9f00d5625c468a7d352c09f4f3cfbfd52e276 /win32/win32.h
parent1751d01517ae68e043553e12532e976a8feb2f80 (diff)
downloadperl-1c85e96a88f6bac005ba2c0b226e3ed81d5ca9cc.tar.gz
Tweak for build with Mingw32 - __attribute__((unused)) is not liked
by gcc -xc++. p4raw-id: //depot/perlio@12737
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 16ad7fa195..830025f45b 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -32,8 +32,14 @@
# define __int64 long long
# endif
# define Win32_Winsock
+#ifdef __cplusplus
+/* Mingw32 gcc -xc++ objects to __attribute((unused)) at least */
+#undef PERL_UNUSED_DECL
+#define PERL_UNUSED_DECL
+#endif
#endif
+
/* Define DllExport akin to perl's EXT,
* If we are in the DLL or mimicing the DLL for Win95 work round
* then Export the symbol,