diff --git a/build_file.cpp b/build_file.cpp index de2eeb2..10fec73 100644 --- a/build_file.cpp +++ b/build_file.cpp @@ -10,7 +10,7 @@ int CompileFiles(Strs files) { result = OS_SystemF("g++ -o %Q.exe %Q -g -Wno-write-strings", exe, filestr); } else if (cc == "clang") { - result = OS_SystemF("clang++ -o %Q.exe %Q -g -Wno-writable-strings", exe, filestr); + result = OS_SystemF("clang++ -std=c++11 -o %Q.exe %Q -g -Wno-writable-strings", exe, filestr); } else { result = OS_SystemF("cl -Fe:%Q.exe %Q -Zi -WX -W3 -wd4200 -diagnostics:column -nologo -D_CRT_SECURE_NO_WARNINGS", exe, filestr); diff --git a/code/arena.c b/code/arena.c index ef1231c..5e366aa 100644 --- a/code/arena.c +++ b/code/arena.c @@ -417,7 +417,7 @@ MA_API bool MV_DecommitPos(MV_Memory *m, size_t pos) { return false; } -#elif __unix__ // _WIN32 +#else #include #define MV__UNIX_PAGE_SIZE 4096 MA_API MV_Memory MV_Reserve(size_t size) { @@ -448,6 +448,4 @@ MA_API void MV_Deallocate(MV_Memory *m) { int result = munmap(m->data, m->reserve); MA_ASSERT(result == 0 && "Failed to release virtual memory using munmap"); } -#else - #error "unhandled arena platform" -#endif // __unix__ \ No newline at end of file +#endif \ No newline at end of file