diff options
author | Tom Hughes <tomhughes@chromium.org> | 2022-06-17 15:14:11 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-07 18:43:42 +0000 |
commit | ff355e3dc31830f70b5ad603c5fce17e1ca012ce (patch) | |
tree | e6989a180a9eca76e315b146ea752fb78cd8c842 /builtin/stdlib.h | |
parent | 54e603413f987e995486ede3ddccce1aebbe2c93 (diff) | |
download | chrome-ec-ff355e3dc31830f70b5ad603c5fce17e1ca012ce.tar.gz |
util: Move stdlib declarations to builtin directory
The "builtin" directory is EC's copy of the C standard library headers.
Move the declarations for functions that are provided by the standard
library to the "builtin" directory. This change makes it easier for
future changes to optionally build with the C standard library instead
of the standalone EC subset.
BRANCH=none
BUG=b:172020503, b:234181908
TEST=./util/compare_build.sh -b all -j 120
=> MATCH
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I4822e49677e0c0e1b092711b533f2aaa762cb4e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3712033
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'builtin/stdlib.h')
-rw-r--r-- | builtin/stdlib.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/builtin/stdlib.h b/builtin/stdlib.h new file mode 100644 index 0000000000..fa62a18589 --- /dev/null +++ b/builtin/stdlib.h @@ -0,0 +1,11 @@ +/* Copyright 2022 The ChromiumOS Authors. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef __CROS_EC_STDLIB_H__ +#define __CROS_EC_STDLIB_H__ + +int atoi(const char *nptr); + +#endif /* __CROS_EC_STDLIB_H__ */ |