From 02e8aa7f237791e13b1431f70df14fa3a3404bc2 Mon Sep 17 00:00:00 2001 From: John Malmberg Date: Mon, 6 Aug 2018 07:48:19 -0500 Subject: Add fixes for building with gnu regex. --- custom.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'custom.h') diff --git a/custom.h b/custom.h index 0ec8d1f9..774659a6 100644 --- a/custom.h +++ b/custom.h @@ -44,6 +44,13 @@ #include /* 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 */ -- cgit v1.2.3