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