windows-nt/Source/XPSP1/NT/multimedia/opengl/glu/inc/winmem.h
2020-09-26 16:20:57 +08:00

11 lines
368 B
C

#include <windows.h>
#define malloc(size) gluAlloc((UINT)(size))
#define calloc(nobj, size) gluCalloc((UINT)(nobj), (UINT)(size))
#define realloc(p, size) gluReAlloc((HLOCAL)(p), (UINT)(size))
#define free(p) LocalFree((HLOCAL)(p))
HLOCAL gluAlloc (UINT size);
HLOCAL gluCalloc (UINT nobj, UINT size);
HLOCAL gluReAlloc (HLOCAL p, UINT size);