mirror of https://github.com/mgba-emu/mgba.git
Fix windows build on case-sensitive filesystems
This commit is contained in:
parent
a5b9faa88c
commit
8d002913f0
|
@ -95,7 +95,7 @@ endif()
|
|||
# Platform support
|
||||
if(WIN32)
|
||||
add_definitions(-D_WIN32_WINNT=0x0600)
|
||||
list(APPEND OS_LIB Ws2_32)
|
||||
list(APPEND OS_LIB ws2_32)
|
||||
file(GLOB OS_SRC ${CMAKE_SOURCE_DIR}/src/platform/windows/*.c)
|
||||
source_group("Windows-specific code" FILES ${OS_SRC})
|
||||
else()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "util/memory.h"
|
||||
|
||||
#include <Windows.h>
|
||||
#include <windows.h>
|
||||
|
||||
void* anonymousMemoryMap(size_t size) {
|
||||
return VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#define PATH_SEP '/'
|
||||
#else
|
||||
#include <io.h>
|
||||
#include <Windows.h>
|
||||
#include <windows.h>
|
||||
#define PATH_SEP '\\'
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue