Added support for 64 bit integers under Windows.
This commit is contained in:
parent
8967214d9c
commit
a1b08cb922
|
@ -83,4 +83,53 @@ typedef signed short int32_t;
|
||||||
|
|
||||||
#endif /* HAVE_U_INT32_T */
|
#endif /* HAVE_U_INT32_T */
|
||||||
|
|
||||||
|
#ifndef HAVE_U_INT64_T
|
||||||
|
#if SIZEOF_LONG_LONG == 8
|
||||||
|
typedef unsigned long long u_int64_t;
|
||||||
|
#elif defined(_MSC_EXTENSIONS)
|
||||||
|
typedef unsigned _int64 u_int64_t;
|
||||||
|
#elif SIZEOF_INT == 8
|
||||||
|
typedef unsigned int u_int64_t;
|
||||||
|
#elif SIZEOF_LONG == 8
|
||||||
|
typedef unsigned long u_int64_t;
|
||||||
|
#elif SIZEOF_SHORT == 8
|
||||||
|
typedef unsigned short u_int64_t;
|
||||||
|
#else /* XXX */
|
||||||
|
#error "there's no appropriate type for u_int64_t"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* HAVE_U_INT64_T */
|
||||||
|
|
||||||
|
#ifndef PRId64
|
||||||
|
#ifdef _MSC_EXTENSIONS
|
||||||
|
#define PRId64 "I64d"
|
||||||
|
#else /* _MSC_EXTENSIONS */
|
||||||
|
#define PRId64 "lld"
|
||||||
|
#endif /* _MSC_EXTENSIONS */
|
||||||
|
#endif /* PRId64 */
|
||||||
|
|
||||||
|
#ifndef PRIo64
|
||||||
|
#ifdef _MSC_EXTENSIONS
|
||||||
|
#define PRIo64 "I64o"
|
||||||
|
#else /* _MSC_EXTENSIONS */
|
||||||
|
#define PRIo64 "llo"
|
||||||
|
#endif /* _MSC_EXTENSIONS */
|
||||||
|
#endif /* PRIo64 */
|
||||||
|
|
||||||
|
#ifndef PRIx64
|
||||||
|
#ifdef _MSC_EXTENSIONS
|
||||||
|
#define PRIx64 "I64x"
|
||||||
|
#else /* _MSC_EXTENSIONS */
|
||||||
|
#define PRIx64 "llx"
|
||||||
|
#endif /* _MSC_EXTENSIONS */
|
||||||
|
#endif /* PRIx64 */
|
||||||
|
|
||||||
|
#ifndef PRIu64
|
||||||
|
#ifdef _MSC_EXTENSIONS
|
||||||
|
#define PRIu64 "I64u"
|
||||||
|
#else /* _MSC_EXTENSIONS */
|
||||||
|
#define PRIu64 "llu"
|
||||||
|
#endif /* _MSC_EXTENSIONS */
|
||||||
|
#endif /* PRIu64 */
|
||||||
|
|
||||||
#endif /* _BITTYPES_H */
|
#endif /* _BITTYPES_H */
|
||||||
|
|
Reference in New Issue