summaryrefslogtreecommitdiffstats
path: root/kimgio
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2019-01-25 17:25:09 +0900
committerSlávek Banko <slavek.banko@axis.cz>2019-01-25 14:22:30 +0100
commit222736b58d8b7f7e20ab2038786917c474e12527 (patch)
treefcf33a23c7432547f22b25cffae804c681741938 /kimgio
parent22e509929069318dbf8b20e7e6ca5283ee31c01a (diff)
downloadtdelibs-222736b58d8b7f7e20ab2038786917c474e12527.tar.gz
tdelibs-222736b58d8b7f7e20ab2038786917c474e12527.zip
Change to define __STDC_LIMIT_MACROS first
<stdint.h> (or other system headers handling the macro) may be included indirectly from other header files (<sys/types.h> is a reasonable one). (cherry picked from commit 9e6c88287f250f75fb8bfc72e5e0c9371d73ed1f)
Diffstat (limited to 'kimgio')
-rw-r--r--kimgio/jp2.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kimgio/jp2.cpp b/kimgio/jp2.cpp
index a8acb108b..9ae7d3a89 100644
--- a/kimgio/jp2.cpp
+++ b/kimgio/jp2.cpp
@@ -1,18 +1,18 @@
// This library is distributed under the conditions of the GNU LGPL.
#include "config.h"
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
#ifdef HAVE_JASPER
#include "jp2.h"
-#ifdef HAVE_STDINT_H
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS
#endif
+
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <tdetempfile.h>