Add WINDOWS_LEAN_AND_MEAN to mem_utils.c
This commit is contained in:
parent
1ce07e9e4e
commit
8eaa4afed1
@ -7,6 +7,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if defined(WAPP_PLATFORM_WINDOWS)
|
#if defined(WAPP_PLATFORM_WINDOWS)
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#include <memoryapi.h>
|
#include <memoryapi.h>
|
||||||
|
|
||||||
@ -95,7 +96,7 @@ void wapp_mem_util_free(void *ptr, u64 size) {
|
|||||||
#ifdef WAPP_PLATFORM_WINDOWS
|
#ifdef WAPP_PLATFORM_WINDOWS
|
||||||
internal inline void *alloc_windows(void *addr, u64 size, MemAccess access,
|
internal inline void *alloc_windows(void *addr, u64 size, MemAccess access,
|
||||||
MemAllocFlags flags) {
|
MemAllocFlags flags) {
|
||||||
return VirtualAlloc2(addr, NULL, (SIZE_T)size, flags, access_types[access]);
|
return VirtualAlloc(addr, (SIZE_T)size, flags, access_types[access]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user