update os layer
This commit is contained in:
9
core.h
9
core.h
@@ -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;}
|
||||
|
||||
Reference in New Issue
Block a user