Tweak for build with Mingw32 - __attribute__((unused)) is not liked
[p5sagit/p5-mst-13.2.git] / win32 / win32.h
index 16ad7fa..830025f 100644 (file)
 #    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,