summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-01-30 18:42:10 +0100
committerSlávek Banko <slavek.banko@axis.cz>2017-01-30 18:42:10 +0100
commit2c54f6887d3a64693a0097f3ace85614606bf8d8 (patch)
treeb0e874f6cfd3b9145d14bacb0fcfa083ab9d0a62
parenta412a1e86f9f1aecfc76bd41e43245480953b0e4 (diff)
downloaddigikam-2c54f6887d3a64693a0097f3ace85614606bf8d8.tar.gz
digikam-2c54f6887d3a64693a0097f3ace85614606bf8d8.zip
Enable STDC_LIMIT_MACROS for jasper
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--digikam/libs/dimg/dimg.cpp3
-rw-r--r--digikam/libs/dimg/loaders/jp2kloader.cpp10
2 files changed, 13 insertions, 0 deletions
diff --git a/digikam/libs/dimg/dimg.cpp b/digikam/libs/dimg/dimg.cpp
index b1caeee..d61f2dd 100644
--- a/digikam/libs/dimg/dimg.cpp
+++ b/digikam/libs/dimg/dimg.cpp
@@ -27,6 +27,9 @@
extern "C"
{
+#if !defined(__STDC_LIMIT_MACROS)
+#define __STDC_LIMIT_MACROS
+#endif
#include <stdint.h>
}
diff --git a/digikam/libs/dimg/loaders/jp2kloader.cpp b/digikam/libs/dimg/loaders/jp2kloader.cpp
index e485b13..d68c488 100644
--- a/digikam/libs/dimg/loaders/jp2kloader.cpp
+++ b/digikam/libs/dimg/loaders/jp2kloader.cpp
@@ -36,6 +36,16 @@
// files io. Uncomment this line only for debugging.
//#define ENABLE_DEBUG_MESSAGES
+// C ANSI includes.
+
+extern "C"
+{
+#if !defined(__STDC_LIMIT_MACROS)
+#define __STDC_LIMIT_MACROS
+#endif
+#include <stdint.h>
+}
+
// TQt includes.
#include <tqfile.h>