summaryrefslogtreecommitdiff
path: root/cygwin
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2014-02-18 10:38:43 +1100
committerTony Cook <tony@develop-help.com>2014-02-18 10:38:43 +1100
commit6cc44f6270d743bed3e552da82c044f377e1c777 (patch)
tree46e4c20d477a162abacabcb991d7f34c1aa4d417 /cygwin
parent4bc677234a7eb92539c11decafe80da27aee323a (diff)
downloadperl-6cc44f6270d743bed3e552da82c044f377e1c777.tar.gz
avoid a "FILE" name conflict with cygwin's wchar.h
The 1.7.28 release of cygwin (or possible a separate package released around the same time) header wchar.h includes the following code: typedef __FILE FILE; With PERLIO_NOT_STDIO set to true, the default for core source files, we #include nostdio.h which does: struct _FILE; #define FILE struct _FILE which turns the above code into: typedef __FILE struct _FILE; which isn't C. Disable this hack for cygwin.c
Diffstat (limited to 'cygwin')
-rw-r--r--cygwin/cygwin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cygwin/cygwin.c b/cygwin/cygwin.c
index 6b31232d93..59aa730448 100644
--- a/cygwin/cygwin.c
+++ b/cygwin/cygwin.c
@@ -2,6 +2,7 @@
* Cygwin extras
*/
+#define PERLIO_NOT_STDIO 0
#include "EXTERN.h"
#include "perl.h"
#undef USE_DYNAMIC_LOADING