summaryrefslogtreecommitdiffstats
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2014-10-15 04:38:31 -0600
committerTom Rini <trini@ti.com>2014-10-27 11:04:01 -0400
commit4166ecb247a1ec9f906313428e8b9059c9f2b619 (patch)
tree41f2fbbbc887d8d31788b7b087ed46c1d660db11 /include/stdlib.h
parent0d296cc2d3b8e2ffa46b4a93d1398fa6bf85b504 (diff)
downloadblackbird-obmc-uboot-4166ecb247a1ec9f906313428e8b9059c9f2b619.tar.gz
blackbird-obmc-uboot-4166ecb247a1ec9f906313428e8b9059c9f2b619.zip
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 <gabeblack@google.com> Reviewed-by: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org> Reviewed-by: Bill Richardson <wfrichar@google.com> Signed-off-by: Simon Glass <sjg@chromium.org> (Replaced with a GPL version from glibc)
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
new file mode 100644
index 0000000000..6bc7fbb3c4
--- /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_ */
OpenPOWER on IntegriCloud