From 582948e690bd543524da2b63220853a2bc5ff1c7 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Fri, 2 Dec 2016 09:32:14 +0200 Subject: [PATCH] Add UINT[32|64]_MAX defines --- server/modules/filter/cache/cachefilter.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/modules/filter/cache/cachefilter.h b/server/modules/filter/cache/cachefilter.h index 2da6bcfaa..1accd1222 100644 --- a/server/modules/filter/cache/cachefilter.h +++ b/server/modules/filter/cache/cachefilter.h @@ -38,6 +38,14 @@ class StorageFactory; #define CACHE_DEBUG_MIN CACHE_DEBUG_NONE #define CACHE_DEBUG_MAX (CACHE_DEBUG_RULES | CACHE_DEBUG_USAGE | CACHE_DEBUG_DECISIONS) +#if !defined(UINT32_MAX) +#define UINT32_MAX (4294967295U) +#endif + +#if !defined(UINT64_MAX) +#define UINT64_MAX (18446744073709551615UL) +#endif + // Count #define CACHE_DEFAULT_MAX_RESULTSET_ROWS UINT32_MAX // Bytes