forked from hackedteam/vector-ipa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_stdint.h
executable file
·66 lines (53 loc) · 1.31 KB
/
_stdint.h
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* $Id: _stdint.h 790 2009-08-03 14:34:04Z alor $ */
#ifndef __STDINT_H
#define __STDINT_H
#include <limits.h>
#if defined HAVE_STDINT_H && !defined OS_SOLARIS
#include <stdint.h>
#elif !defined OS_SOLARIS
#include <sys/types.h>
#elif defined OS_SOLARIS
#include <sys/inttypes.h>
#endif
#ifndef TYPES_DEFINED
#define TYPES_DEFINED
typedef int8_t int8;
typedef int16_t int16;
typedef int32_t int32;
typedef int64_t int64;
typedef uint8_t u_int8;
typedef uint16_t u_int16;
typedef uint32_t u_int32;
typedef uint64_t u_int64;
#ifdef OS_BSD_OPEN
#define INT8_MAX CHAR_MAX
#define UINT8_MAX UCHAR_MAX
#define INT16_MAX SHRT_MAX
#define UINT16_MAX USHRT_MAX
#define INT32_MAX INT_MAX
#define UINT32_MAX UINT_MAX
#endif
/* Maximum of signed integral types. */
#ifndef INT8_MAX
#define INT8_MAX (127)
#endif
#ifndef INT16_MAX
#define INT16_MAX (32767)
#endif
#ifndef INT32_MAX
#define INT32_MAX (2147483647)
#endif
/* Maximum of unsigned integral types. */
#ifndef UINT8_MAX
#define UINT8_MAX (255)
#endif
#ifndef UINT16_MAX
#define UINT16_MAX (65535)
#endif
#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)
#endif
#endif
#endif
/* EOF */
// vim:ts=3:expandtab