diff options
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/stdbool.h | 13 | ||||
-rw-r--r-- | builtin/stdint.h | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/builtin/stdbool.h b/builtin/stdbool.h new file mode 100644 index 0000000000..6e0f92dfc0 --- /dev/null +++ b/builtin/stdbool.h @@ -0,0 +1,13 @@ +/* Copyright 2016 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef __CROS_EC_STDBOOL_H__ +#define __CROS_EC_STDBOOL_H__ + +#define bool _Bool +#define true 1 +#define false 0 + +#endif /* __CROS_EC_STDBOOL_H__ */ diff --git a/builtin/stdint.h b/builtin/stdint.h index 75cf8d8ebf..f80a46f1a5 100644 --- a/builtin/stdint.h +++ b/builtin/stdint.h @@ -21,6 +21,8 @@ typedef signed long long int64_t; typedef int intptr_t; typedef unsigned int uintptr_t; +typedef uint8_t uint_least8_t; + #ifndef UINT16_MAX #define UINT16_MAX (65535U) #endif |