This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Mingw32 PERL_OBJECT tweaks
[perl5.git] / ext / IO / IO.xs
index afe7f77..a434cca 100644 (file)
@@ -7,7 +7,14 @@
 #  include <unistd.h>
 #endif
 #ifdef I_FCNTL
+#if defined(__GNUC__) && defined(__cplusplus) && defined(WIN32)
+#define _NO_OLDNAMES
+#endif 
 #  include <fcntl.h>
+#if defined(__GNUC__) && defined(__cplusplus) && defined(WIN32)
+#undef _NO_OLDNAMES
+#endif 
+
 #endif
 
 #ifdef PerlIO