From 8d0ab89e5d5befd57bc72f1d46cc572caa6ba5bc Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Thu, 27 Aug 2015 14:04:02 -0500 Subject: 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 Reviewed-on: http://review.coreboot.org/11406 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- src/include/stdlib.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/include/stdlib.h') 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) -- cgit v1.2.3