blob: d826b8885adfe06d543ddee013d2bc29e0af415c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
diff --git a/src/osgPlugins/jp2/ReaderWriterJP2.cpp b/src/osgPlugins/jp2/ReaderWriterJP2.cpp
index 7b3c6cc..d949c2c 100644
--- a/src/osgPlugins/jp2/ReaderWriterJP2.cpp
+++ b/src/osgPlugins/jp2/ReaderWriterJP2.cpp
@@ -15,6 +15,10 @@
#include <stdio.h>
#include <stdlib.h>
+#ifndef SIZE_MAX
+#define SIZE_MAX ((size_t)(-1))
+#endif
+
extern "C"
{
#include <jasper/jasper.h>
|