diff options
author | OBATA Akio <obache@wizdas.com> | 2019-01-25 17:25:09 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-01-25 14:20:41 +0100 |
commit | 9e6c88287f250f75fb8bfc72e5e0c9371d73ed1f (patch) | |
tree | 4f1e99f5124a1f01de2625ce7bc958e4244eea64 /kimgio/jp2.cpp | |
parent | 6716d0dfb9c50b388817118469d1e2b7dc7ae46a (diff) | |
download | tdelibs-9e6c88287f250f75fb8bfc72e5e0c9371d73ed1f.tar.gz tdelibs-9e6c88287f250f75fb8bfc72e5e0c9371d73ed1f.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).
Diffstat (limited to 'kimgio/jp2.cpp')
-rw-r--r-- | kimgio/jp2.cpp | 10 |
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> |