File: compat.h

package info (click to toggle)
squizz 0.99d%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 6,784 kB
  • sloc: sh: 4,825; ansic: 2,640; lex: 1,992; yacc: 1,650; makefile: 127
file content (28 lines) | stat: -rw-r--r-- 471 bytes parent folder | download | duplicates (2)
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_ */