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 --- lib.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib.c') diff --git a/lib.c b/lib.c index 9662668b..5f046edf 100644 --- a/lib.c +++ b/lib.c @@ -60,11 +60,6 @@ #define max(a, b) ((a) > (b) ? (a) : (b)) #define min(a, b) ((a) < (b) ? (a) : (b)) -#if HAVE_WINDOWS_H -int putenv(const char *); -int tzset(void); -#endif - #if !HAVE_POSIX_SIGS int async_sig_enabled = 0; #endif -- cgit v1.2.3