This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
avoid a "FILE" name conflict with cygwin's wchar.h
authorTony Cook <tony@develop-help.com>
Mon, 17 Feb 2014 23:38:43 +0000 (10:38 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 17 Feb 2014 23:38:43 +0000 (10:38 +1100)
commit6cc44f6270d743bed3e552da82c044f377e1c777
tree46e4c20d477a162abacabcb991d7f34c1aa4d417
parent4bc677234a7eb92539c11decafe80da27aee323a
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
cygwin/cygwin.c