aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-05-09 20:08:15 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-05-09 20:08:15 +0300
commit8ff0b4eaa7592280b5a55087c0326c6ef1f88db5 (patch)
treeeae689a948e50dbf462b7e0d0c3d225409f6c7b0 /awk.h
parent17a2a7c14dc27248d87f2561a1ec311ad4972355 (diff)
parentfe0a0998411173db5cab614253562b2efd6f9664 (diff)
downloadegawk-8ff0b4eaa7592280b5a55087c0326c6ef1f88db5.tar.gz
egawk-8ff0b4eaa7592280b5a55087c0326c6ef1f88db5.tar.bz2
egawk-8ff0b4eaa7592280b5a55087c0326c6ef1f88db5.zip
Merge branch 'gawk-4.0-stable'
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/awk.h b/awk.h
index 44fda9d4..438cca03 100644
--- a/awk.h
+++ b/awk.h
@@ -30,6 +30,15 @@
* any system headers. Otherwise, extreme death, destruction
* and loss of life results.
*/
+#if defined(_TANDEM_SOURCE)
+/*
+ * config.h forces this even on non-tandem systems but it
+ * causes problems elsewhere if used in the check below.
+ * so workaround it. bleah.
+ */
+#define tandem_for_real 1
+#endif
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -38,7 +47,7 @@
#define _GNU_SOURCE 1 /* enable GNU extensions */
#endif /* _GNU_SOURCE */
-#if defined(_TANDEM_SOURCE) && ! defined(_SCO_DS)
+#if defined(tandem_for_real) && ! defined(_SCO_DS)
#define _XOPEN_SOURCE_EXTENDED 1
#endif
@@ -80,6 +89,12 @@ extern int errno;
#include <stdlib.h>
#endif /* not STDC_HEADERS */
+#ifdef HAVE_STDBOOL_H
+#include <stdbool.h>
+#else
+#include "missing_d/gawkbool.h"
+#endif
+
#include "mbsupport.h" /* defines MBS_SUPPORT */
#if MBS_SUPPORT