malloc.h is linux specific and should NOT be used. Also one file was missing the corresponding include
This commit is contained in:
parent
f54e7ff602
commit
543e288d70
2 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
|
@ -123,4 +124,4 @@ u8* lz11_compress(u8* input, u32 inputSize, u32* size) {
|
||||||
|
|
||||||
*size = (u32) compressedLength;
|
*size = (u32) compressedLength;
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
|
@ -551,7 +551,7 @@ enum STBVorbisError
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#if !(defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh))
|
#if !(defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh))
|
||||||
#include <malloc.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
#else // STB_VORBIS_NO_CRT
|
#else // STB_VORBIS_NO_CRT
|
||||||
#define NULL 0
|
#define NULL 0
|
||||||
|
|
Loading…
Reference in a new issue