mirror of
https://salsa.debian.org/gnuk-team/gnuk/gnuk.git
synced 2024-09-21 19:30:08 +00:00
16 lines
318 B
C
16 lines
318 B
C
|
/*
|
||
|
* stdlib.h replacement, so that we can replace malloc functions
|
||
|
*/
|
||
|
|
||
|
typedef unsigned int size_t;
|
||
|
|
||
|
#ifdef REPLACE_MALLOC
|
||
|
#define malloc my_malloc
|
||
|
#define free my_free
|
||
|
#define realloc my_realloc
|
||
|
#endif
|
||
|
|
||
|
extern void *malloc (size_t size);
|
||
|
extern void free (void *ptr);
|
||
|
extern void *realloc (void *ptr, size_t size);
|