projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1751d01
)
Tweak for build with Mingw32 - __attribute__((unused)) is not liked
author
Nick Ing-Simmons
<nik@tiuk.ti.com>
Sun, 28 Oct 2001 13:53:45 +0000
(13:53 +0000)
committer
Nick Ing-Simmons
<nik@tiuk.ti.com>
Sun, 28 Oct 2001 13:53:45 +0000
(13:53 +0000)
by gcc -xc++.
p4raw-id: //depot/perlio@12737
win32/win32.h
patch
|
blob
|
history
diff --git
a/win32/win32.h
b/win32/win32.h
index
16ad7fa
..
830025f
100644
(file)
--- 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,