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)
This commit is contained in:
parent
d18065b59c
commit
8d0ab89e5d
|
@ -20,12 +20,10 @@
|
||||||
#define min(a,b) MIN((a),(b))
|
#define min(a,b) MIN((a),(b))
|
||||||
#define max(a,b) MAX((a),(b))
|
#define max(a,b) MAX((a),(b))
|
||||||
|
|
||||||
#if !defined(__PRE_RAM__)
|
|
||||||
void *memalign(size_t boundary, size_t size);
|
void *memalign(size_t boundary, size_t size);
|
||||||
void *malloc(size_t size);
|
void *malloc(size_t size);
|
||||||
/* We never free memory */
|
/* We never free memory */
|
||||||
static inline void free(void *ptr) {}
|
static inline void free(void *ptr) {}
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __ROMCC__
|
#ifndef __ROMCC__
|
||||||
static inline unsigned long div_round_up(unsigned int n, unsigned int d)
|
static inline unsigned long div_round_up(unsigned int n, unsigned int d)
|
||||||
|
|
Loading…
Reference in New Issue