p4raw-id: //depot/perl@1615
#ifdef VMS
# include <file.h>
#else
+#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
/* This comment is a kludge to get metaconfig to see the symbols
# 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
#ifdef PERL_OBJECT /* XXX _very_ temporary hacks */
# undef signal
# undef open
+# undef setmode
# define open PerlLIO_open3
# undef TAINT_PROPER
# define TAINT_PROPER(a)