update os layer

This commit is contained in:
Daniel Ledda
2025-01-02 11:02:27 +01:00
parent 5f0eaedfc6
commit 39ff16b6a6
7 changed files with 71 additions and 17 deletions

9
core.h
View File

@@ -7,15 +7,6 @@
#include <stdio.h>
#include <time.h> // TODO(dledda): try not to depend on this one
#if OS_WINDOWS
#include "Windows.h"
#elif OS_LINUX
#include <sys/mman.h>
#include <sys/stat.h>
#else
#error Development environment not supported.
#endif
// ### Misc macros ###
#if ENABLE_ASSERT
#define Assert(expression) if (!(expression)) {*(volatile int *)0 = 0;}