malloc.h is linux specific and should NOT be used. Also one file was missing the corresponding include

This commit is contained in:
Morten Delenk 2016-08-27 18:57:32 +02:00
parent f54e7ff602
commit 543e288d70
No known key found for this signature in database
GPG key ID: 3F818D0F65DCB490
2 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sstream>
@ -123,4 +124,4 @@ u8* lz11_compress(u8* input, u32 inputSize, u32* size) {
*size = (u32) compressedLength;
return buf;
}
}

View file

@ -551,7 +551,7 @@ enum STBVorbisError
#include <assert.h>
#include <math.h>
#if !(defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh))
#include <malloc.h>
#include <stdlib.h>
#endif
#else // STB_VORBIS_NO_CRT
#define NULL 0