summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-02-04 14:25:31 (GMT)
committer Slávek Banko <slavek.banko@axis.cz>2017-02-04 14:25:31 (GMT)
commitd58ece7928ea712335805e16482bb89473fba9e9 (patch)
treefb3f0691a71ad4c848ad05e0ee6423ab95c36a61
parentc1a8c46a6745e1e266564d3fa49f69d7f22d1c62 (diff)
downloadlibksquirrel-d58ece79.zip
libksquirrel-d58ece79.tar.gz
Enable STDC_LIMIT_MACROS for jasper
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--kernel/kls_jpeg2000/fmt_codec_jpeg2000.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/kls_jpeg2000/fmt_codec_jpeg2000.cpp b/kernel/kls_jpeg2000/fmt_codec_jpeg2000.cpp
index c4fecf0..010c7c6 100644
--- a/kernel/kls_jpeg2000/fmt_codec_jpeg2000.cpp
+++ b/kernel/kls_jpeg2000/fmt_codec_jpeg2000.cpp
@@ -23,6 +23,12 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#if defined(HAVE_STDINT_H)
+#if !defined(__STDC_LIMIT_MACROS)
+#define __STDC_LIMIT_MACROS
+#endif
+#include <stdint.h>
+#endif
#include "ksquirrel-libs/fmt_types.h"
#include "ksquirrel-libs/fileio.h"