From 38c31154d08a48074e614c35279447ba644860a1 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 16 Jul 2019 17:34:58 +0100 Subject: [PATCH] Problem: build broken with older compilers Solution: define __STDC_LIMIT_MACROS before including stdint.h so that SIZE_MAX is defined --- src/stdint.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stdint.hpp b/src/stdint.hpp index dc4d5df1..e04e7fc2 100644 --- a/src/stdint.hpp +++ b/src/stdint.hpp @@ -69,6 +69,8 @@ typedef unsigned __int64 uint64_t; #else +// To define SIZE_MAX with older compilers +#define __STDC_LIMIT_MACROS #include #endif