summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-10-28 14:03:58 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-28 14:03:58 +0000
commitdaf748aaf0094ba483a724964e6f8aa1fb2648a2 (patch)
treec0f3e0e5e1b88eb687111ac1c2f8e6b97944dc25 /win32
parent81bc1258f279d199f4ece0ae70a87bd9534e41d9 (diff)
parent1c85e96a88f6bac005ba2c0b226e3ed81d5ca9cc (diff)
downloadperl-daf748aaf0094ba483a724964e6f8aa1fb2648a2.tar.gz
Integrate perlio:
[ 12737] Tweak for build with Mingw32 - __attribute__((unused)) is not liked by gcc -xc++. [ 12736] Have :stdio layer update an honour the fd refcnt table. Embed.t now passes with PERLIO=stdio as well (tested under ithreads) p4raw-link: @12737 on //depot/perlio: 1c85e96a88f6bac005ba2c0b226e3ed81d5ca9cc p4raw-link: @12736 on //depot/perlio: 1751d01517ae68e043553e12532e976a8feb2f80 p4raw-id: //depot/perl@12738
Diffstat (limited to 'win32')
-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,