summaryrefslogtreecommitdiff
path: root/Build/source/libs/poppler/poppler-PATCHES/patch-02-LLONG_MAX
blob: 09e5f57303f46f2b5fd714027618c834409cdb74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff -ur poppler-src-orig/goo/GooString.h poppler-src/goo/GooString.h
--- poppler-src-orig/goo/GooString.h	2016-02-19 10:05:07.000000000 +0100
+++ poppler-src/goo/GooString.h	2016-03-17 10:52:54.000000000 +0100
@@ -35,6 +35,21 @@
 #endif
 
 #include <limits.h> // for LLONG_MAX and ULLONG_MAX
+
+/* <limits.h> 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 <stdarg.h>
 #include <stdlib.h> // for NULL
 #include "gtypes.h"