From d1bac19a0aff8ec0ac9e7dd31ac8067e07fe60eb Mon Sep 17 00:00:00 2001 From: hissingshark Date: Thu, 5 Apr 2018 16:58:23 +0100 Subject: [PATCH] Fixed blunder and changed OS test. --- core/hw/pvr/ta_ctx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hw/pvr/ta_ctx.h b/core/hw/pvr/ta_ctx.h index 5544875ef..c527dbbf3 100644 --- a/core/hw/pvr/ta_ctx.h +++ b/core/hw/pvr/ta_ctx.h @@ -5,10 +5,10 @@ #include "pvr_regs.h" // helper for 32 byte aligned memory allocation -inline void* aligned_malloc(size_t size, size_t align) +inline void* aligned_malloc(size_t align, size_t size) { void *result; - #ifdef WIN32 + #if HOST_OS == OS_WINDOWS result = _aligned_malloc(size, align); #else if(posix_memalign(&result, align, size)) result = 0;