summaryrefslogtreecommitdiff
path: root/custom.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-10-01 21:44:17 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-10-01 21:44:17 +0300
commit6bbb883964d2e26b6d62c7b434be20c6a9a7615e (patch)
tree7448b49cdc3d6a0c680e18cfaa0e563e0c5a6909 /custom.h
parenta6ee0988727f00f9b24dce5de9761cdc718f4b0a (diff)
parent92014ca462f99220d2238692764f230448e4dae9 (diff)
downloadgawk-6bbb883964d2e26b6d62c7b434be20c6a9a7615e.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 468c1a50..8d375c89 100644
--- a/custom.h
+++ b/custom.h
@@ -53,6 +53,13 @@
#endif
#endif
+/* This keeps regex happy on non-GCC compilers */
+#ifndef __GNUC__
+#ifndef __builtin_expect
+#define __builtin_expect(expr, val) (expr)
+#endif
+#endif
+
/* For QNX, based on submission from Michael Hunter, mphunter@qnx.com */
#ifdef __QNX__
#define GETPGRP_VOID 1