From 9e6c88287f250f75fb8bfc72e5e0c9371d73ed1f Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Fri, 25 Jan 2019 17:25:09 +0900 Subject: [PATCH] Change to define __STDC_LIMIT_MACROS first (or other system headers handling the macro) may be included indirectly from other header files ( is a reasonable one). --- kimgio/jp2.cpp | 10 +++++----- 1 file 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 -#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 +#endif +#ifdef HAVE_STDINT_H #include #endif #include