From f4944fb24eed3a0c450dea5fc7e6ad1bfce748a0 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 8 Dec 2015 14:33:09 +0100 Subject: [PATCH] Fixed: Compilation under OS X --- code/nel/include/nel/misc/types_nl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/code/nel/include/nel/misc/types_nl.h b/code/nel/include/nel/misc/types_nl.h index 9a7d7df76..e12b7aaca 100644 --- a/code/nel/include/nel/misc/types_nl.h +++ b/code/nel/include/nel/misc/types_nl.h @@ -368,6 +368,7 @@ typedef unsigned int uint; // at least 32bits (depend of processor) inline void *aligned_malloc(size_t size, size_t alignment) { return _aligned_malloc(size, alignment); } inline void aligned_free(void *ptr) { _aligned_free(ptr); } #elif defined(NL_OS_MAC) +#include // under Mac OS X, malloc is already aligned for SSE and Altivec (16 bytes alignment) inline void *aligned_malloc(size_t size, size_t alignment) { return malloc(size); } inline void aligned_free(void *ptr) { free(ptr); }