00001 #ifndef LT_INTTYPES_H
00002 #define LT_INTTYPES_H 1
00003
00004 #ifndef PRIu64
00005
00006
00007
00008
00009
00010
00011 # if !defined __cplusplus || defined __STDC_FORMAT_MACROS
00012
00013 # if __WORDSIZE == 64
00014 # define __PRI64_PREFIX "l"
00015 # define __PRIPTR_PREFIX "l"
00016 # else
00017 # define __PRI64_PREFIX "ll"
00018 # define __PRIPTR_PREFIX
00019 # endif
00020
00021 # define PRId8 "d"
00022 # define PRId16 "d"
00023 # define PRId32 "d"
00024 # define PRId64 __PRI64_PREFIX "d"
00025
00026 # define PRIi8 "i"
00027 # define PRIi16 "i"
00028 # define PRIi32 "i"
00029 # define PRIi64 __PRI64_PREFIX "i"
00030
00031 # define PRIo8 "o"
00032 # define PRIo16 "o"
00033 # define PRIo32 "o"
00034 # define PRIo64 __PRI64_PREFIX "o"
00035
00036 # define PRIu8 "u"
00037 # define PRIu16 "u"
00038 # define PRIu32 "u"
00039 # define PRIu64 __PRI64_PREFIX "u"
00040
00041 # define PRIx8 "x"
00042 # define PRIx16 "x"
00043 # define PRIx32 "x"
00044 # define PRIx64 __PRI64_PREFIX "x"
00045
00046 # define PRIX8 "X"
00047 # define PRIX16 "X"
00048 # define PRIX32 "X"
00049 # define PRIX64 __PRI64_PREFIX "X"
00050
00051 # endif
00052
00053 # ifndef UINT64_MAX
00054 # if __WORDSIZE == 64
00055 # define UINT64_MAX 18446744073709551615UL
00056 # else
00057 # define UINT64_MAX 18446744073709551615ULL
00058 # endif
00059 # endif
00060
00061 #endif
00062
00063 #endif