fix build on actual windows machine
This commit is contained in:
parent
3dc7fb0b3e
commit
afbdc12c6b
2 changed files with 3 additions and 6 deletions
|
@ -770,7 +770,7 @@ endif()
|
|||
|
||||
if(WIN32)
|
||||
# define winXP SP2 as minimum for everything
|
||||
add_definitions(-DUSE_WIN32 -DNTDDI_VERSION=0x05010200 -D_WIN32_WINNT=0x0502 -DWINVER=0x0502)
|
||||
add_definitions(-DUSE_WIN32 -DNTDDI_VERSION=0x05010200 -D_WIN32_WINNT=0x0501 -DWINVER=0x0501)
|
||||
set(stratagus_SRCS ${stratagus_SRCS} ${win32_SRCS})
|
||||
set(stratagus_LIBS ${stratagus_LIBS} dsound winmm ws2_32 dbghelp)
|
||||
endif()
|
||||
|
|
|
@ -52,8 +52,8 @@ void copy_dir(const char* source_folder, const char* target_folder);
|
|||
|
||||
// set everything to winxp sp2 compatiblity
|
||||
#define NTDDI_VERSION 0x05010200
|
||||
#define _WIN32_WINNT 0x0502
|
||||
#define WINVER 0x0502
|
||||
#define _WIN32_WINNT 0x0501
|
||||
#define WINVER 0x0501
|
||||
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX MAX_PATH
|
||||
|
@ -76,9 +76,6 @@ void copy_dir(const char* source_folder, const char* target_folder);
|
|||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#ifndef WINVER
|
||||
#define WINVER 0x0501
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#include <wincon.h>
|
||||
#include <process.h>
|
||||
|
|
Loading…
Reference in a new issue