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:
Jan (janneke) Nieuwenhuizen 2019-10-20 19:29:09 +02:00
parent 7b0462b3a3
commit 4de45663b4
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ malloc (size_t size)
if (brk (__brk + size) == -1)
return 0;
char *p = __brk;
__brk += size;
__brk = __brk + size;
return p;
}
#endif /* !__GNU__ */