Merge pull request #1 from mrneo240/windows_fix

Fix compilation windows targets
This commit is contained in:
mrneo240 2018-10-16 01:03:28 -04:00 committed by GitHub
commit 82833f8fab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

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

View File

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