Defined gfxRealloc() for GFX_USE_OS_QT

This commit is contained in:
Thomas Sterren 2018-02-20 14:51:37 +01:00
parent 013bac84ce
commit 861e6b9869
2 changed files with 6 additions and 0 deletions

View File

@ -86,6 +86,11 @@ void* gfxAlloc(size_t sz)
return malloc(sz); return malloc(sz);
} }
void* gfxRealloc(void* ptr, size_t oldsz, size_t newsz)
{
return realloc(ptr, newsz);
}
void gfxFree(void* ptr) void gfxFree(void* ptr)
{ {
free(ptr); free(ptr);

View File

@ -45,6 +45,7 @@ void _gosDeinit();
void gfxHalt(const char* msg); void gfxHalt(const char* msg);
void gfxExit(void); void gfxExit(void);
void* gfxAlloc(size_t sz); void* gfxAlloc(size_t sz);
void* gfxRealloc(void *ptr, size_t oldsz, size_t newsz);
void gfxFree(void* ptr); void gfxFree(void* ptr);
void gfxYield(void); void gfxYield(void);
void gfxSleepMilliseconds(delaytime_t ms); void gfxSleepMilliseconds(delaytime_t ms);