This commit is contained in:
1 parent
5df1a105c7
commit
575e0a52b1
20 files changed
+74
-26
No files matched your search
@@ -9,7 +9,7 @@
|
||||
BEGIN_C_LINKAGE
|
||||
#endif // !WP_PLATFORM_CPP
|
||||
|
||||
typedef enum {
|
||||
typedef enum WpMemAccess {
|
||||
WP_MEM_ACCESS_NONE,
|
||||
WP_MEM_ACCESS_READ_ONLY,
|
||||
WP_MEM_ACCESS_EXEC_ONLY,
|
||||
@@ -18,7 +18,7 @@ typedef enum {
|
||||
WP_MEM_ACCESS_READ_WRITE_EXEC,
|
||||
} WpMemAccess;
|
||||
|
||||
typedef enum {
|
||||
typedef enum WpMemInitType {
|
||||
WP_MEM_INIT_UNINITIALISED,
|
||||
WP_MEM_INIT_INITIALISED,
|
||||
} WpMemInitType;
|
||||
|
||||
@@ -13,7 +13,7 @@ BEGIN_C_LINKAGE
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
||||
typedef enum {
|
||||
typedef enum WpMemAllocFlags {
|
||||
#if defined(WP_PLATFORM_LINUX) || defined(WP_PLATFORM_GNU)
|
||||
WP_MEM_ALLOC_RESERVE = 0,
|
||||
WP_MEM_ALLOC_COMMIT = MAP_POPULATE,
|
||||
|
||||
@@ -15,7 +15,7 @@ BEGIN_C_LINKAGE
|
||||
#include <Windows.h>
|
||||
#include <memoryapi.h>
|
||||
|
||||
typedef enum {
|
||||
typedef enum WpMemAllocFlags {
|
||||
WP_MEM_ALLOC_RESERVE = MEM_RESERVE,
|
||||
WP_MEM_ALLOC_COMMIT = MEM_COMMIT,
|
||||
} WpMemAllocFlags;
|
||||
|
||||
Reference in new issue
Block a user