Browse Source

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).
pull/20/head
OBATA Akio 7 months ago
parent
commit
9e6c88287f
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      kimgio/jp2.cpp

+ 5
- 5
kimgio/jp2.cpp View File

@@ -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>

Loading…
Cancel
Save