unity build setup complete, builds like it should.
This commit is contained in:
parent
ab89c03813
commit
d8d99933e6
@ -1,6 +1,14 @@
|
||||
// clang-format off
|
||||
|
||||
// [.h] includes
|
||||
#include "base/base_inc.h"
|
||||
#include "os/os_inc.h"
|
||||
|
||||
// [.c] includes
|
||||
#include "base/base_inc.c"
|
||||
#include "os/os_inc.c"
|
||||
|
||||
// clang-format on
|
||||
|
||||
|
||||
u64 main(int argc, char **argv) { return 0; }
|
||||
|
@ -28,7 +28,7 @@ internal void os_release(void *ptr, u64 size) {
|
||||
|
||||
// NOTE(tijani): For large page size
|
||||
internal void *os_reserve_large(u64 size) {
|
||||
void *l_memory = VirtualAlloc(0, size, MEM_RESERVE | MEM_COMMIT | MEM_LARGE_PAGES);
|
||||
void *l_memory = VirtualAlloc(0, size, MEM_RESERVE | MEM_COMMIT | MEM_LARGE_PAGES, PAGE_READWRITE);
|
||||
return l_memory;
|
||||
}
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
#define OS_CORE_WIN32_H
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
// Application State
|
||||
typedef struct OS_W32_State OS_W32_State;
|
||||
|
5
src/os/os_inc.c
Normal file
5
src/os/os_inc.c
Normal file
@ -0,0 +1,5 @@
|
||||
// clang-format off
|
||||
|
||||
#include "core/win32/os_core_win32.c"
|
||||
|
||||
// clang-format on
|
11
src/os/os_inc.h
Normal file
11
src/os/os_inc.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef OS_INC_H
|
||||
#define OS_INC_H
|
||||
|
||||
// clang-format off
|
||||
|
||||
#include "core/os_core.h"
|
||||
#include "core/win32/os_core_win32.h"
|
||||
|
||||
// clang-format on
|
||||
|
||||
#endif // OS_INC_H
|
Loading…
Reference in New Issue
Block a user