Fix libgfortran build on hppa*-hp-hpux[01]*
[official-gcc.git] / fixincludes / tests / base / inttypes.h
blob9c1f93eb736e88ccf6f60638170d972d1a81060a
1 /* DO NOT EDIT THIS FILE.
3 It has been auto-edited by fixincludes from:
5 "fixinc/tests/inc/inttypes.h"
7 This had to be done to correct non-standard usages in the
8 original, manufacturer supplied header file. */
12 #if defined( HPUX_C99_INTTYPES_CHECK )
13 #define UINT8_C(__c) (__c)
14 #define UINT16_C(__c) (__c)
15 #define INT32_C(__c) (__c)
16 #define UINT32_C(__c) __CONCAT__(__c,u)
18 #endif /* HPUX_C99_INTTYPES_CHECK */
21 #if defined( HPUX_C99_INTTYPES3_CHECK )
22 #undef SIZE_MAX
23 #define SIZE_MAX __SIZE_MAX__
24 #ifdef __INTPTR_MAX__
25 # undef INTPTR_MAX
26 # define INTPTR_MAX __INTPTR_MAX__
27 # undef INTPTR_MIN
28 # define INTPTR_MIN (-INTPTR_MAX - 1)
29 #endif
30 #ifdef __UINTPTR_MAX__
31 # undef UINTPTR_MAX
32 # define UINTPTR_MAX __UINTPTR_MAX__
33 #endif
35 #endif /* HPUX_C99_INTTYPES3_CHECK */
38 #if defined( HPUX_C99_INTTYPES4_CHECK )
39 #define SCNxMAX SCNx64
40 #define SCNuMAX SCNu64
41 #define SCNxMAX SCNx32
42 #define SCNuMAX SCNu32
44 #endif /* HPUX_C99_INTTYPES4_CHECK */
47 #if defined( HPUX_C99_INTTYPES5_CHECK )
48 #ifndef __LP64__
49 #define PRIdPTR PRId32
50 #define PRIiPTR PRIi32
51 #define PRIoPTR PRIo32
52 #define PRIuPTR PRIu32
53 #define PRIxPTR PRIx32
54 #define PRIXPTR PRIX32
55 #else
56 #define PRIdPTR PRId64
57 #define PRIiPTR PRIi64
58 #define PRIoPTR PRIo64
59 #define PRIuPTR PRIu64
60 #define PRIxPTR PRIx64
61 #define PRIXPTR PRIX64
62 #endif
64 #ifndef _KERNEL
66 #endif /* HPUX_C99_INTTYPES5_CHECK */