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:23:16 +0100 |
commit | ee4a2949266943e328719d0f11e13b63b8f14b46 (patch) | |
tree | 0e5d79ca4c1b7ab2082855699af586d75e9da8d6 | |
parent | 6f0a158d33fb412c1cfd2aad6db1d323f86b0826 (diff) | |
download | tdelibs-ee4a2949266943e328719d0f11e13b63b8f14b46.tar.gz tdelibs-ee4a2949266943e328719d0f11e13b63b8f14b46.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)
-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 c3c36f213..2be5253e3 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 <ktempfile.h> |