mescc: Mes C Library: Prepare for M2-Planet: malloc.
* lib/stdlib/malloc.c: Rewrite C-constructs not supported by M2-Planet.
This commit is contained in:
parent
fac29c0e7b
commit
5dbae4a29b
|
@ -37,6 +37,6 @@ malloc (size_t size)
|
|||
if (brk (__brk + size) == -1)
|
||||
return 0;
|
||||
char *p = __brk;
|
||||
__brk += size;
|
||||
__brk = __brk + size;
|
||||
return p;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue