Mac OSX: fix includes & add missing functionality

This commit is contained in:
Andreas Schroeder 2014-04-29 00:51:49 +02:00
parent f908a3ca78
commit 64cfab5b46
6 changed files with 55 additions and 4 deletions

9
Utilities/GNU.cpp Normal file
View file

@ -0,0 +1,9 @@
#include "GNU.h"
#ifdef __APPLE__
void * _aligned_malloc(size_t size, size_t alignment) {
void *buffer;
posix_memalign(&buffer, alignment, size);
return buffer;
}
#endif