Fix compilation windows targets
This commit is contained in:
parent
df44c0ea73
commit
0718ab0697
|
@ -3,8 +3,12 @@
|
|||
#include <math.h>
|
||||
|
||||
#ifndef __APPLE__
|
||||
#include <malloc.h>
|
||||
#if defined(__WIN32__)
|
||||
/* Linux + Kos define this, OSX does not, so just use malloc there */
|
||||
#define memalign(x, size) malloc((size))
|
||||
#else
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
/* Linux + Kos define this, OSX does not, so just use malloc there */
|
||||
#define memalign(x, size) malloc((size))
|
||||
#endif
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
#include <string.h>
|
||||
|
||||
#ifndef __APPLE__
|
||||
#include <malloc.h>
|
||||
#if defined(__WIN32__)
|
||||
/* Linux + Kos define this, OSX does not, so just use malloc there */
|
||||
#define memalign(x, size) malloc((size))
|
||||
#else
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
/* Linux + Kos define this, OSX does not, so just use malloc there */
|
||||
#define memalign(x, size) malloc((size))
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user