mirror of
https://github.com/Harshit-Dhanwalkar/AsciiCam.git
synced 2026-06-09 10:25:12 +02:00
19 lines
331 B
C
19 lines
331 B
C
#ifndef NL_ALLOC_H
|
|
#define NL_ALLOC_H
|
|
|
|
#ifdef __LINUX_NOLIBC__
|
|
#include <stddef.h>
|
|
|
|
void *nl_malloc(size_t n);
|
|
void *nl_calloc(size_t nmemb, size_t size);
|
|
void nl_free(void *ptr);
|
|
|
|
#define malloc(n) nl_malloc(n)
|
|
#define calloc(nm, sz) nl_calloc(nm, sz)
|
|
#define free(p) nl_free(p)
|
|
|
|
#else // MACOS
|
|
#include <stdlib.h>
|
|
#endif
|
|
|
|
#endif
|