aboutsummaryrefslogtreecommitdiffstats
path: root/custom.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-08-07 18:11:02 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-08-07 18:11:02 +0300
commit9955d1799245b9364112c5277ad58273a7c915b9 (patch)
tree33fb8371e7905edf846a3ff0cbf9fcf23305f7d0 /custom.h
parenta9e991ea8292ab72e452688577e179e62c0e0b1b (diff)
parent02e8aa7f237791e13b1431f70df14fa3a3404bc2 (diff)
downloadegawk-9955d1799245b9364112c5277ad58273a7c915b9.tar.gz
egawk-9955d1799245b9364112c5277ad58273a7c915b9.tar.bz2
egawk-9955d1799245b9364112c5277ad58273a7c915b9.zip
Merge branch 'gawk-4.2-stable' into feature/gnulib-regex
Diffstat (limited to 'custom.h')
-rw-r--r--custom.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/custom.h b/custom.h
index 0ec8d1f9..774659a6 100644
--- a/custom.h
+++ b/custom.h
@@ -44,6 +44,13 @@
#include <fp.h>
/* isnan () macro is broken */
#undef isnan
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
+#define __builtin_expect(expr, val) (expr)
+#ifndef SIZE_MAX
+#define SIZE_MAX __INT32_MAX
+#endif
#endif
/* For QNX, based on submission from Michael Hunter, mphunter@qnx.com */