From 5ee9c6e95736d9ae925fedab4caa0c615d115fb2 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 10 Jan 2014 20:46:25 -0800 Subject: * configure: Detect platforms which don't reveal declarations in C headers which are extensions to standard C, like popen or fileno, in response to standard feature selection macros like -D_POSIX_SOURCE. MinGW and Cygwin are offenders. These platforms hide the declarations when gcc is in -ansi mode, by testing for __STRICT_ANSI__. Turns out, however, that -U__STRICT_ANSI__ on the gcc command line strips this away, causing the declarations to be revealed. * lib.c, parser.l, stream.c, utf8.c: Removed the declarations which compensated for the above problem. Yippee! Fuck you, stupid Cygwin troglodytes, and the MinGW horse you rode in on. http://cygwin.com/ml/cygwin/2011-10/msg00131.html --- utf8.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'utf8.c') diff --git a/utf8.c b/utf8.c index c37e7d8d..36354277 100644 --- a/utf8.c +++ b/utf8.c @@ -36,10 +36,6 @@ #include "unwind.h" #include "utf8.h" -#if HAVE_WINDOWS_H -FILE *popen(const char *path, const char *mode); -#endif - #if WCHAR_MAX > 65535 #define FULL_UNICODE #endif -- cgit v1.2.3