]> git.saurik.com Git - apple/security.git/blob - utilities/src/SecIOFormat.h
Security-55471.tar.gz
[apple/security.git] / utilities / src / SecIOFormat.h
1 //
2 // SecIOFormat.h
3 // utilities
4 //
5 // Created by Mitch Adler on 10/1/12.
6 // Copyright (c) 2012 Apple Inc. All rights reserved.
7 //
8
9 #ifndef _SECIOFORMAT_H_
10 #define _SECIOFORMAT_H_
11
12 #include <inttypes.h>
13
14 // MARK: CFIndex printing support
15
16 #ifdef __LLP64__
17 # define PRIdCFIndex "lld"
18 # define PRIiCFIndex "lli"
19 # define PRIoCFIndex "llo"
20 # define PRIuCFIndex "llu"
21 # define PRIxCFIndex "llx"
22 # define PRIXCFIndex "llX"
23 #else
24 # define PRIdCFIndex "ld"
25 # define PRIiCFIndex "li"
26 # define PRIoCFIndex "lo"
27 # define PRIuCFIndex "lu"
28 # define PRIxCFIndex "lx"
29 # define PRIXCFIndex "lX"
30 #endif
31
32 // MARK: OSStatus printing support
33
34 #ifdef __LP64__
35 # define PRIdOSStatus "d"
36 # define PRIiOSStatus "i"
37 # define PRIoOSStatus "o"
38 # define PRIuOSStatus "u"
39 # define PRIxOSStatus "x"
40 # define PRIXOSStatus "X"
41 #else
42 # define PRIdOSStatus "ld"
43 # define PRIiOSStatus "li"
44 # define PRIoOSStatus "lo"
45 # define PRIuOSStatus "lu"
46 # define PRIxOSStatus "lx"
47 # define PRIXOSStatus "lX"
48 #endif
49
50 #endif