From e43c6fa6ec1b8e58bd27802a5d5a0ce13b9a6178 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Thu, 2 Feb 2012 07:16:02 -0600 Subject: [PATCH] adds SIZE_MAX definition --- src/common.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common.hpp b/src/common.hpp index 2e2a89cd3c..c2c78bed77 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -33,6 +33,12 @@ #endif #include +// SIZE_MAX appears to be a compiler thing not an OS header thing. +// make sure it is defined. +#ifndef SIZE_MAX + #define SIZE_MAX ((size_t)(-1)) +#endif + #include #include #include