1// -*- C++ -*-
2//===---------------------------- stdint.h --------------------------------===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef _LIBCPP_STDINT_H
11#define _LIBCPP_STDINT_H
12
13/*
14 stdint.h synopsis
15
16Macros:
17
18 INT8_MIN
19 INT16_MIN
20 INT32_MIN
21 INT64_MIN
22
23 INT8_MAX
24 INT16_MAX
25 INT32_MAX
26 INT64_MAX
27
28 UINT8_MAX
29 UINT16_MAX
30 UINT32_MAX
31 UINT64_MAX
32
33 INT_LEAST8_MIN
34 INT_LEAST16_MIN
35 INT_LEAST32_MIN
36 INT_LEAST64_MIN
37
38 INT_LEAST8_MAX
39 INT_LEAST16_MAX
40 INT_LEAST32_MAX
41 INT_LEAST64_MAX
42
43 UINT_LEAST8_MAX
44 UINT_LEAST16_MAX
45 UINT_LEAST32_MAX
46 UINT_LEAST64_MAX
47
48 INT_FAST8_MIN
49 INT_FAST16_MIN
50 INT_FAST32_MIN
51 INT_FAST64_MIN
52
53 INT_FAST8_MAX
54 INT_FAST16_MAX
55 INT_FAST32_MAX
56 INT_FAST64_MAX
57
58 UINT_FAST8_MAX
59 UINT_FAST16_MAX
60 UINT_FAST32_MAX
61 UINT_FAST64_MAX
62
63 INTPTR_MIN
64 INTPTR_MAX
65 UINTPTR_MAX
66
67 INTMAX_MIN
68 INTMAX_MAX
69
70 UINTMAX_MAX
71
72 PTRDIFF_MIN
73 PTRDIFF_MAX
74
75 SIG_ATOMIC_MIN
76 SIG_ATOMIC_MAX
77
78 SIZE_MAX
79
80 WCHAR_MIN
81 WCHAR_MAX
82
83 WINT_MIN
84 WINT_MAX
85
86 INT8_C(value)
87 INT16_C(value)
88 INT32_C(value)
89 INT64_C(value)
90
91 UINT8_C(value)
92 UINT16_C(value)
93 UINT32_C(value)
94 UINT64_C(value)
95
96 INTMAX_C(value)
97 UINTMAX_C(value)
98
99*/
100
101#include <__config>
102
103#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
104#pragma GCC system_header
105#endif
106
107/* C99 stdlib (e.g. glibc < 2.18) does not provide macros needed
108 for C++11 unless __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
109 are defined
110*/
111#if defined(__cplusplus) && !defined(__STDC_LIMIT_MACROS)
112# define __STDC_LIMIT_MACROS
113#endif
114#if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS)
115# define __STDC_CONSTANT_MACROS
116#endif
117
118#include_next <stdint.h>
119
120#endif // _LIBCPP_STDINT_H
121