30 lines
563 B
C
30 lines
563 B
C
// vim:fileencoding=utf-8:foldmethod=marker
|
|
|
|
#ifndef MEM_OS_WIN_H
|
|
#define MEM_OS_WIN_H
|
|
|
|
#include "../../../common/platform/platform.h"
|
|
|
|
#ifdef WAPP_PLATFORM_CPP
|
|
BEGIN_C_LINKAGE
|
|
#endif // !WAPP_PLATFORM_CPP
|
|
|
|
#ifdef WAPP_PLATFORM_WINDOWS
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <Windows.h>
|
|
#include <memoryapi.h>
|
|
|
|
typedef enum mem_alloc_flags {
|
|
WAPP_MEM_ALLOC_RESERVE = MEM_RESERVE,
|
|
WAPP_MEM_ALLOC_COMMIT = MEM_COMMIT,
|
|
} MemAllocFlags;
|
|
|
|
#endif // !WAPP_PLATFORM_WINDOWS
|
|
|
|
#ifdef WAPP_PLATFORM_CPP
|
|
END_C_LINKAGE
|
|
#endif // !WAPP_PLATFORM_CPP
|
|
|
|
#endif // !MEM_OS_WIN_H
|