diff -ur poppler-0.47.0.orig/goo/GooString.h poppler-0.47.0/goo/GooString.h --- poppler-0.47.0.orig/goo/GooString.h Wed May 11 07:47:44 2016 +++ poppler-0.47.0/goo/GooString.h Fri Aug 19 22:46:47 2016 @@ -36,6 +36,21 @@ #endif #include // for LLONG_MAX and ULLONG_MAX + +/* and/or the compiler may or may not define these. */ +/* Minimum and maximum values a `signed long long int' can hold. */ +#ifndef LLONG_MAX +# define LLONG_MAX 9223372036854775807LL +#endif +#ifndef LLONG_MIN +# define LLONG_MIN (-LLONG_MAX - 1LL) +#endif + +/* Maximum value an `unsigned long long int' can hold. (Minimum is 0.) */ +#ifndef ULLONG_MAX +# define ULLONG_MAX 18446744073709551615ULL +#endif + #include #include // for NULL #include "gtypes.h"