~ubuntu-branches/ubuntu/utopic/clamav/utopic-security

« back to all changes in this revision

Viewing changes to libclamav/cltypes.h

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-02-01 11:06:17 UTC
  • mfrom: (0.35.37 sid)
  • Revision ID: package-import@ubuntu.com-20140201110617-33h2xxk09dep0ui4
Tags: 0.98.1+dfsg-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Drop build-dep on electric-fence (in Universe)
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes
  - Add autopkgtest

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
#endif
65
65
#endif
66
66
 
 
67
/* Ensure we have print format types */
 
68
/* PRIu64 should be in <inttypes.h> */
 
69
#ifndef PRIu64
 
70
#ifndef _SF64_PREFIX
 
71
#if SIZEOF_LONG == 8
 
72
#define _SF64_PREFIX "l"
 
73
#elif SIZEOF_LONG_LONG == 8
 
74
#define _SF64_PREFIX "ll"
 
75
#endif
 
76
#endif
 
77
 
 
78
#define PRIu64 _SF64_PREFIX "u"
 
79
#define PRIi64 _SF64_PREFIX "i"
 
80
#define PRIx64 _SF64_PREFIX "x"
 
81
#endif
 
82
 
 
83
#ifndef STDu64
 
84
#define STDu64 "%" PRIu64
 
85
#define STDi64 "%" PRIi64
 
86
#define STDx64 "%" PRIx64
 
87
#endif
 
88
 
 
89
/* PRIu32 should also be in <inttypes.h> */
 
90
#ifndef PRIu32
 
91
#ifndef _SF32_PREFIX
 
92
#if SIZEOF_INT == 4
 
93
#define _SF32_PREFIX ""
 
94
#elif SIZEOF_LONG == 4
 
95
#define _SF32_PREFIX "l"
 
96
#endif
 
97
#endif
 
98
 
 
99
#define PRIu32 _SF32_PREFIX "u"
 
100
#define PRIi32 _SF32_PREFIX "i"
 
101
#define PRIx32 _SF32_PREFIX "x"
 
102
#endif
 
103
 
 
104
#ifndef STDu32
 
105
#define STDu32 "%" PRIu32
 
106
#define STDi32 "%" PRIi32
 
107
#define STDx32 "%" PRIx32
 
108
#endif
 
109
 
 
110
#ifndef INT32_MAX
 
111
#define INT32_MAX 2147483647
 
112
#endif
 
113
 
67
114
#endif