From b3f55d014efe7d453a9f7de9a36955121caf0399 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Fri, 7 Nov 2014 22:07:13 +0000 Subject: [PATCH] In release builds, #define Xaligned_alloc as xaligned_malloc. Otherwise, the out-of-memory handler is not called in case of failure. git-svn-id: https://svn.eduke32.com/eduke32@4736 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/compat.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/polymer/eduke32/build/include/compat.h b/polymer/eduke32/build/include/compat.h index 21664b468..f8131077f 100644 --- a/polymer/eduke32/build/include/compat.h +++ b/polymer/eduke32/build/include/compat.h @@ -934,11 +934,7 @@ static inline void *xaligned_malloc(const bsize_t alignment, const bsize_t size) # define Xmalloc xmalloc # define Xcalloc xcalloc # define Xrealloc xrealloc -#ifdef _WIN32 -# define Xaligned_alloc(alignment, size) _aligned_malloc(size, alignment) -#else -# define Xaligned_alloc(alignment, size) memalign(alignment, size) -#endif +# define Xaligned_alloc xaligned_malloc # define Bexit exit #endif