diff options
Diffstat (limited to 'source/core/allocator.h')
| -rw-r--r-- | source/core/allocator.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/core/allocator.h b/source/core/allocator.h index 46550a054..3306d3780 100644 --- a/source/core/allocator.h +++ b/source/core/allocator.h @@ -2,6 +2,9 @@ #define CORE_LIB_ALLOCATOR_H #include <stdlib.h> +#ifdef _MSC_VER +# include <malloc.h> +#endif namespace Slang { @@ -9,6 +12,8 @@ namespace Slang { #ifdef _MSC_VER return _aligned_malloc(size, alignment); +#elif defined(__CYGWIN__) + return aligned_alloc(alignment, size); #else void * rs = 0; int succ = posix_memalign(&rs, alignment, size); |
