1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
/* compat.h - Compatibility stuff */
#ifndef SQUIZZ_COMPAT_H_
#define SQUIZZ_COMPAT_H_
#ifndef PRIu64
# ifdef _LP64
# define PRIu64 "lu"
# else
# define PRIu64 "llu"
# endif
#endif /* PRIu64 */
#ifndef PRIu32
# define PRIu32 "u"
#endif /* PRIu32 */
#ifndef PRIsiz
# if SIZEOF_SIZE_T == 8
# define PRIsiz PRIu64
# elif SIZEOF_SIZE_T == 4
# define PRIsiz PRIu32
# else
# error "Unsupported size_t size"
# endif
#endif /* PRIsiz */
#endif /* SQUIZZ_COMPAT_H_ */
|