Moved malloc implementations to a separate folder

This commit is contained in:
Max Wash
2020-05-15 19:28:51 +01:00
parent 135bc33b57
commit 529641592a
2 changed files with 11 additions and 6 deletions

View File

@@ -231,12 +231,23 @@
/* #define WIN32 */ /* #define WIN32 */
#if __STD_C
#include <stddef.h> /* for size_t */
#else
#include <sys/types.h>
#endif
#ifdef __magenta__ #ifdef __magenta__
#define LACKS_UNISTD_H #define LACKS_UNISTD_H
#define LACKS_SYS_PARAM_H #define LACKS_SYS_PARAM_H
#define LACKS_SYS_MMAN_H #define LACKS_SYS_MMAN_H
extern void *__extend_heap(size_t sz);
#define HAVE_MMAP 0 #define HAVE_MMAP 0
#define MORECORE __extend_heap
#define MORECORE_CONTIGUOUS 1
#endif #endif
#ifdef WIN32 #ifdef WIN32
@@ -311,12 +322,6 @@ static int cpuinfo (int whole, unsigned long*kernel, unsigned long*user);
#endif #endif
#endif /*Void_t*/ #endif /*Void_t*/
#if __STD_C
#include <stddef.h> /* for size_t */
#else
#include <sys/types.h>
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif