From 46921fd76acb3ae1b73fb4387cefbd8fe4201bd7 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Fri, 20 Jun 2014 23:24:54 +0200 Subject: [PATCH] Fix compile --- code/nel/include/nel/misc/types_nl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/nel/include/nel/misc/types_nl.h b/code/nel/include/nel/misc/types_nl.h index d0111fb08..d27fc4b48 100644 --- a/code/nel/include/nel/misc/types_nl.h +++ b/code/nel/include/nel/misc/types_nl.h @@ -365,6 +365,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); } #else +#include inline void *aligned_malloc(size_t size, size_t alignment) { return memalign(alignment, size); } inline void aligned_free(void *ptr) { free(ptr); } #endif /* NL_COMP_ */ @@ -383,7 +384,7 @@ extern void operator delete[](void *p) throw(); #else /* NL_HAS_SSE2 */ #define NL_DEFAULT_MEMORY_ALIGNMENT 4 -#define NL_ALIGN_SSE2 +#define NL_ALIGN_SSE2 #endif /* NL_HAS_SSE2 */