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).
OBATA Akio 1 month 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 @@
1 1
 // This library is distributed under the conditions of the GNU LGPL.
2 2
 #include "config.h"
3 3
 
4
-#ifdef HAVE_SYS_TYPES_H
5
-#include <sys/types.h>
6
-#endif
7
-
8 4
 #ifdef HAVE_JASPER
9 5
 
10 6
 #include "jp2.h"
11 7
 
12
-#ifdef HAVE_STDINT_H
13 8
 #if !defined(__STDC_LIMIT_MACROS)
14 9
 #define __STDC_LIMIT_MACROS
15 10
 #endif
11
+
12
+#ifdef HAVE_SYS_TYPES_H
13
+#include <sys/types.h>
14
+#endif
15
+#ifdef HAVE_STDINT_H
16 16
 #include <stdint.h>
17 17
 #endif
18 18
 #include <tdetempfile.h>

Loading…
Cancel
Save