aboutsummaryrefslogtreecommitdiffstats
path: root/custom.h
diff options
context:
space:
mode:
authorJohn Malmberg <wb8tyw@qsl.net>2018-08-06 07:48:19 -0500
committerJohn Malmberg <wb8tyw@qsl.net>2018-08-06 07:48:19 -0500
commit02e8aa7f237791e13b1431f70df14fa3a3404bc2 (patch)
tree42ef385a2135e0b1d895090f858b6fc9b0ee4bfb /custom.h
parentae3c6bfca054920ff88501d3c6e663617f611478 (diff)
downloadegawk-02e8aa7f237791e13b1431f70df14fa3a3404bc2.tar.gz
egawk-02e8aa7f237791e13b1431f70df14fa3a3404bc2.tar.bz2
egawk-02e8aa7f237791e13b1431f70df14fa3a3404bc2.zip
Add fixes for building with gnu 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 */