diff options
| author | Gabe Black <[email protected]> | 2014-10-15 04:38:31 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2014-10-27 11:04:01 -0400 |
| commit | 4166ecb247a1ec9f906313428e8b9059c9f2b619 (patch) | |
| tree | 41f2fbbbc887d8d31788b7b087ed46c1d660db11 /include/stdlib.h | |
| parent | 0d296cc2d3b8e2ffa46b4a93d1398fa6bf85b504 (diff) | |
Add some standard headers external code might need
inttypes.h defines format specifiers for printf which work with data types of
particular sizes. stdlib.h is currently just a passthrough to malloc.h which
has declarations of the various *alloc functions.
Add the required #define to common.h so that these printf format specifiers
will be made available.
Signed-off-by: Gabe Black <[email protected]>
Reviewed-by: Gabe Black <[email protected]>
Tested-by: Gabe Black <[email protected]>
Reviewed-by: Bill Richardson <[email protected]>
Signed-off-by: Simon Glass <[email protected]>
(Replaced with a GPL version from glibc)
Diffstat (limited to 'include/stdlib.h')
| -rw-r--r-- | include/stdlib.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h new file mode 100644 index 00000000000..6bc7fbb3c4c --- /dev/null +++ b/include/stdlib.h @@ -0,0 +1,12 @@ +/* + * Copyright (C) 2013 Google Inc. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __STDLIB_H_ +#define __STDLIB_H_ + +#include <malloc.h> + +#endif /* __STDLIB_H_ */ |
