From 764336bdeaee63f13c42c7516a70deff6b3d46aa Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 21 May 2016 02:39:58 +0000 Subject: [PATCH] Fix NO_ALIGNED_MALLOC to actually work and not transpose the parameters. DONT_BUILD. git-svn-id: https://svn.eduke32.com/eduke32@5729 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/compat.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/include/compat.h b/polymer/eduke32/build/include/compat.h index eceaef4bd..8fd755fcf 100644 --- a/polymer/eduke32/build/include/compat.h +++ b/polymer/eduke32/build/include/compat.h @@ -987,9 +987,9 @@ FORCE_INLINE void *xaligned_malloc(const bsize_t alignment, const bsize_t size) # define Xcalloc(nmemb, size) (EDUKE32_PRE_XALLLOC, xcalloc(nmemb, size)) # define Xrealloc(ptr, size) (EDUKE32_PRE_XALLLOC, xrealloc(ptr, size)) # if !defined NO_ALIGNED_MALLOC -# define Xaligned_alloc(size, alignment) (EDUKE32_PRE_XALLLOC, xaligned_malloc(size, alignment)) +# define Xaligned_alloc(alignment, size) (EDUKE32_PRE_XALLLOC, xaligned_malloc(size, alignment)) # else -# define Xaligned_alloc(size, alignment) Xmalloc(size) +# define Xaligned_alloc(alignment, size) Xmalloc(size) # endif # define Bexit(status) do { initprintf("exit(%d) at %s:%d in %s()\n", status, __FILE__, __LINE__, EDUKE32_FUNCTION); exit(status); } while (0) #else @@ -1000,7 +1000,7 @@ FORCE_INLINE void *xaligned_malloc(const bsize_t alignment, const bsize_t size) # if !defined NO_ALIGNED_MALLOC # define Xaligned_alloc xaligned_malloc # else -# define Xaligned_alloc(size, alignment) Xmalloc(size) +# define Xaligned_alloc(alignment, size) Xmalloc(size) # endif # define Bexit exit #endif