try again on windows
This commit is contained in:
parent
7c067d8161
commit
3dc7fb0b3e
4 changed files with 2 additions and 26 deletions
|
@ -769,7 +769,8 @@ endif()
|
|||
# Platform definitions
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DUSE_WIN32)
|
||||
# define winXP SP2 as minimum for everything
|
||||
add_definitions(-DUSE_WIN32 -DNTDDI_VERSION=0x05010200 -D_WIN32_WINNT=0x0502 -DWINVER=0x0502)
|
||||
set(stratagus_SRCS ${stratagus_SRCS} ${win32_SRCS})
|
||||
set(stratagus_LIBS ${stratagus_LIBS} dsound winmm ws2_32 dbghelp)
|
||||
endif()
|
||||
|
|
|
@ -32,13 +32,6 @@
|
|||
|
||||
//@{
|
||||
|
||||
#ifdef USE_WIN32
|
||||
// set everything to winxp sp2 compatiblity
|
||||
#define NTDDI_VERSION 0x05010200
|
||||
#define _WIN32_WINNT 0x0502
|
||||
#define WINVER 0x0502
|
||||
#endif
|
||||
|
||||
#include <cstdlib>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
|
|
@ -50,14 +50,6 @@
|
|||
#include <windows.h>
|
||||
#include <winsock.h>
|
||||
#include <ws2tcpip.h>
|
||||
#if (NTDDI_VERSION >= NTDDI_VISTA)
|
||||
// that's fine
|
||||
#elif (NTDDI_VERSION >= NTDDI_WIN2K)
|
||||
// that's fine, too
|
||||
#else
|
||||
// oh no, we're at least NTDDI_WIN2K, otherwise Iphlpapi doesn't work
|
||||
#define NTDDI_VERSION NTDDI_WIN2K
|
||||
#endif
|
||||
#include <Iphlpapi.h>
|
||||
#pragma comment(lib, "Iphlpapi.lib")
|
||||
|
||||
|
|
|
@ -16,16 +16,6 @@
|
|||
|
||||
*/
|
||||
|
||||
/* _WIN32_WINNT must be set to at least 0x0501 */
|
||||
#ifdef _WIN32_WINNT
|
||||
#if _WIN32_WINNT < 0x0501
|
||||
#undef _WIN32_WINNT
|
||||
#endif
|
||||
#endif
|
||||
#ifndef _WIN32_WINNT
|
||||
#define _WIN32_WINNT 0x0501
|
||||
#endif
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#include <io.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue