diff options
| author | Cody Northrop <cody@lunarg.com> | 2015-07-08 16:48:37 -0600 |
|---|---|---|
| committer | Cody Northrop <cody@lunarg.com> | 2015-07-08 16:55:52 -0600 |
| commit | 927eeb45cddd60fb53bd65fb09d74ae2602a89b9 (patch) | |
| tree | 648548d0322a3a9c4539fe1e496b0334f9c2346a /loader/loader.c | |
| parent | 290095a6cd2efc6e719e77baeb57af96b8a94218 (diff) | |
| download | usermoji-927eeb45cddd60fb53bd65fb09d74ae2602a89b9.tar.xz | |
loader: Build fixes for Windows
Diffstat (limited to 'loader/loader.c')
| -rw-r--r-- | loader/loader.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/loader/loader.c b/loader/loader.c index 9f8cfc92..9c725024 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -127,7 +127,11 @@ void* loader_aligned_heap_alloc( if (!instance && instance->alloc_callbacks.pfnAlloc) { return instance->alloc_callbacks.pfnAlloc(instance->alloc_callbacks.pUserData, size, alignment, alloc_type); } - return aligned_alloc(size, alignment); +#if defined(_WIN32) + return _aligned_malloc(alignment, size); +#else + return aligned_alloc(alignment, size); +#endif } void loader_heap_free( |
