aboutsummaryrefslogtreecommitdiffstats
path: root/custom.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-08-08 20:44:04 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-08-08 20:44:04 +0300
commit746d2b79d760e9e59bc2c1f3ca06cadae4fb1554 (patch)
treef405d692efb7076bc9e318c2ad38d3f30e2af962 /custom.h
parent882905db28d022514cdffe47ba8153fffb05e9d5 (diff)
parent72c03bce22eae7a1e6e298a0c21dced8ef779f26 (diff)
downloadegawk-746d2b79d760e9e59bc2c1f3ca06cadae4fb1554.tar.gz
egawk-746d2b79d760e9e59bc2c1f3ca06cadae4fb1554.tar.bz2
egawk-746d2b79d760e9e59bc2c1f3ca06cadae4fb1554.zip
Merge branch 'master' into feature/fix-comments
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 */