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 9e6c88287f)
v3.5.13-sru
OBATA Akio 6 years ago committed by Slávek Banko
parent 6f0a158d33
commit ee4a294926
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1,18 +1,18 @@
// This library is distributed under the conditions of the GNU LGPL. // This library is distributed under the conditions of the GNU LGPL.
#include "config.h" #include "config.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_JASPER #ifdef HAVE_JASPER
#include "jp2.h" #include "jp2.h"
#ifdef HAVE_STDINT_H
#if !defined(__STDC_LIMIT_MACROS) #if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS
#endif #endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_STDINT_H
#include <stdint.h> #include <stdint.h>
#endif #endif
#include <ktempfile.h> #include <ktempfile.h>

Loading…
Cancel
Save