diff options
author | John Malmberg <wb8tyw@qsl.net> | 2018-08-06 07:48:19 -0500 |
---|---|---|
committer | John Malmberg <wb8tyw@qsl.net> | 2018-08-06 07:48:19 -0500 |
commit | 02e8aa7f237791e13b1431f70df14fa3a3404bc2 (patch) | |
tree | 42ef385a2135e0b1d895090f858b6fc9b0ee4bfb /custom.h | |
parent | ae3c6bfca054920ff88501d3c6e663617f611478 (diff) | |
download | egawk-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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 */ |