From bae96234845ea9b6f5853c9bb554f5b6a04973c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Wed, 12 Apr 2017 16:00:10 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@341 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src/core/pibase.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/pibase.h b/src/core/pibase.h index 54762930..a344663a 100644 --- a/src/core/pibase.h +++ b/src/core/pibase.h @@ -120,13 +120,16 @@ #ifdef WINDOWS # ifdef CC_GCC # define amalloc(s) __mingw_aligned_malloc(s, PIP_MEMALIGN_BYTES) +# define afree(p) __mingw_aligned_free(p) # else # ifdef CC_VC # define amalloc(s) _aligned_malloc(s, PIP_MEMALIGN_BYTES) +# define afree(p) _aligned_free(p) # endif # endif #else # define amalloc(s) aligned_alloc(PIP_MEMALIGN_BYTES, s) +# define afree(p) free(p) #endif #ifdef ANDROID