Mac OSX: fix includes & add missing functionality

This commit is contained in:
Andreas Schroeder 2014-04-29 00:51:49 +02:00
parent f908a3ca78
commit 64cfab5b46
6 changed files with 55 additions and 4 deletions

View file

@ -366,7 +366,9 @@ int main(int arg, char **argv)
// #define your own functions "STBTT_malloc" / "STBTT_free" to avoid malloc.h
#ifndef STBTT_malloc
#ifndef __APPLE__
#include <malloc.h>
#endif
#define STBTT_malloc(x,u) malloc(x)
#define STBTT_free(x,u) free(x)
#endif