summaryrefslogtreecommitdiff
path: root/custom.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-08-08 20:42:58 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-08-08 20:42:58 +0300
commit72c03bce22eae7a1e6e298a0c21dced8ef779f26 (patch)
tree317e0405b4e8b5cb5819baf890da882a3ed39908 /custom.h
parent5d9a38ba513b6b8216e373f7297eab69eebcfebb (diff)
parent6103384d051118cdd6a6f43b44e5456ff7a272eb (diff)
downloadgawk-72c03bce22eae7a1e6e298a0c21dced8ef779f26.tar.gz
Merge branch 'gawk-4.2-stable'
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 b4f8a46d..468c1a50 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 */