X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=win32%2Fwin32.h;h=830025f45b26bb85c2b83a8e8449027880def68b;hb=1c85e96a88f6bac005ba2c0b226e3ed81d5ca9cc;hp=16ad7fa195745d58849bd0dd0c98f72d15bc2bfc;hpb=1751d01517ae68e043553e12532e976a8feb2f80;p=p5sagit%2Fp5-mst-13.2.git diff --git a/win32/win32.h b/win32/win32.h index 16ad7fa..830025f 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,