summaryrefslogtreecommitdiffstats
path: root/utf8.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-01-10 20:46:25 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-01-10 20:46:25 -0800
commit5ee9c6e95736d9ae925fedab4caa0c615d115fb2 (patch)
treef32df484457d662e8571c720a3f634ed075d125c /utf8.c
parentba9a6aade4adf32b4361aa8db8b156fdb40e2cd5 (diff)
downloadtxr-5ee9c6e95736d9ae925fedab4caa0c615d115fb2.tar.gz
txr-5ee9c6e95736d9ae925fedab4caa0c615d115fb2.tar.bz2
txr-5ee9c6e95736d9ae925fedab4caa0c615d115fb2.zip
* 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
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c4
1 files changed, 0 insertions, 4 deletions
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