diff options
author | Aaron Durbin <adurbin@chromium.org> | 2015-08-27 14:04:02 -0500 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2015-08-27 21:14:10 +0000 |
commit | 8d0ab89e5d5befd57bc72f1d46cc572caa6ba5bc (patch) | |
tree | e9db54cf70d3fc9bf6ea30fad8bb23ff5014e4a6 /src/include | |
parent | d18065b59c7523e35b422ba419d85495729ad7ca (diff) |
stdlib: don't hide the malloc et all declarations
It doesn't hurt to expose declarations. Instead of
a compile-time error there'll be a link error if someone
tries to malloc() anything.
Change-Id: Ief6f22c168c660a6084558b5889ea4cc42fefdde
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/11406
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/stdlib.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/include/stdlib.h b/src/include/stdlib.h index 35e8b3229a..13f48e24e7 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -20,12 +20,10 @@ #define min(a,b) MIN((a),(b)) #define max(a,b) MAX((a),(b)) -#if !defined(__PRE_RAM__) void *memalign(size_t boundary, size_t size); void *malloc(size_t size); /* We never free memory */ static inline void free(void *ptr) {} -#endif #ifndef __ROMCC__ static inline unsigned long div_round_up(unsigned int n, unsigned int d) |