mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-21 17:28:20 +08:00
mdbx-windows: minor fix mdbx_free()
for MDBX_WITHOUT_MSVC_CRT=ON
.
Related to https://github.com/erthink/libmdbx/issues/155 Change-Id: I378d9c47b51c55e1e61bc7f6269cbc8182265870
This commit is contained in:
parent
5ae120af80
commit
11a521f10a
@ -205,9 +205,7 @@ static inline void *mdbx_realloc(void *ptr, size_t bytes) {
|
|||||||
#endif /* mdbx_realloc */
|
#endif /* mdbx_realloc */
|
||||||
|
|
||||||
#ifndef mdbx_free
|
#ifndef mdbx_free
|
||||||
static inline void mdbx_free(void *ptr) {
|
static inline void mdbx_free(void *ptr) { HeapFree(GetProcessHeap(), 0, ptr); }
|
||||||
return HeapFree(GetProcessHeap(), 0, ptr);
|
|
||||||
}
|
|
||||||
#endif /* mdbx_free */
|
#endif /* mdbx_free */
|
||||||
|
|
||||||
#else /* MDBX_WITHOUT_MSVC_CRT */
|
#else /* MDBX_WITHOUT_MSVC_CRT */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user