summaryrefslogtreecommitdiffstats
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:20:41 +0100
commit9e6c88287f250f75fb8bfc72e5e0c9371d73ed1f (patch)
tree4f1e99f5124a1f01de2625ce7bc958e4244eea64
parent6716d0dfb9c50b388817118469d1e2b7dc7ae46a (diff)
downloadtdelibs-9e6c88287f250f75fb8bfc72e5e0c9371d73ed1f.zip
tdelibs-9e6c88287f250f75fb8bfc72e5e0c9371d73ed1f.tar.gz
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).
-rw-r--r--kimgio/jp2.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kimgio/jp2.cpp b/kimgio/jp2.cpp
index a8acb10..9ae7d3a 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>