Merge pull request #27 from mrneo240/master
Minor Changes to allow windows to cleanly compile
This commit is contained in:
commit
78f5fc698a
|
@ -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