From 7856d4e0bfe446def91964aeaf5a171767309704 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 9 Feb 2018 00:36:06 -0600 Subject: [PATCH] Fix (u)intmax_t to work on Mac --- deps/ox/src/ox/std/types.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deps/ox/src/ox/std/types.hpp b/deps/ox/src/ox/std/types.hpp index 4cce71a3..ee12eba9 100644 --- a/deps/ox/src/ox/std/types.hpp +++ b/deps/ox/src/ox/std/types.hpp @@ -18,12 +18,15 @@ typedef unsigned uint_t; #if defined(_WIN32) || defined(__APPLE__) || defined(__arm__) || defined(__ppc__) typedef long long int64_t; typedef unsigned long long uint64_t; +typedef __INTMAX_TYPE__ intmax_t; +typedef __UINTMAX_TYPE__ uintmax_t; #else typedef long int64_t; typedef unsigned long uint64_t; +typedef int64_t intmax_t; +typedef uint64_t uintmax_t; #endif -typedef uint64_t uintmax_t; namespace ox {