Merge pull request #1 from mrneo240/windows_fix
Fix compilation windows targets
This commit is contained in:
commit
82833f8fab
|
@ -3,8 +3,12 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#ifndef __APPLE__
|
#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
|
#else
|
||||||
|
#include <malloc.h>
|
||||||
|
#endif
|
||||||
/* Linux + Kos define this, OSX does not, so just use malloc there */
|
/* Linux + Kos define this, OSX does not, so just use malloc there */
|
||||||
#define memalign(x, size) malloc((size))
|
#define memalign(x, size) malloc((size))
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifndef __APPLE__
|
#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
|
#else
|
||||||
|
#include <malloc.h>
|
||||||
|
#endif
|
||||||
/* Linux + Kos define this, OSX does not, so just use malloc there */
|
/* Linux + Kos define this, OSX does not, so just use malloc there */
|
||||||
#define memalign(x, size) malloc((size))
|
#define memalign(x, size) malloc((size))
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user