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 --- parser.l | 4 ---- 1 file changed, 4 deletions(-) (limited to 'parser.l') diff --git a/parser.l b/parser.l index 449fb236..0dca7331 100644 --- a/parser.l +++ b/parser.l @@ -50,10 +50,6 @@ #include "hash.h" #include "parser.h" -#if HAVE_WINDOWS_H -int fileno(FILE *stream); -#endif - #define YY_INPUT(buf, result, max_size) \ do { \ val c = get_byte(yyin_stream); \ -- cgit v1.2.3