From 5520372dfaa99e448ba3cab8546aa8929fe2b4db Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 27 Nov 2018 21:06:30 +0100 Subject: [PATCH] define SIZE_MAX if needed. --- src/report.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/report.c b/src/report.c index fdb670b5e..ce27c520f 100644 --- a/src/report.c +++ b/src/report.c @@ -105,6 +105,11 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #include +/* pre-C99 compatibility */ +#ifndef SIZE_MAX +#define SIZE_MAX ((size_t)(-1)) +#endif + #define ECHECK_VERSION "4.01" extern int *storms;