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>
|
||||
|
||||
#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