try again on windows

This commit is contained in:
Tim Felgentreff 2020-11-30 09:51:43 +01:00
parent 7c067d8161
commit 3dc7fb0b3e
4 changed files with 2 additions and 26 deletions

View file

@ -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()

View file

@ -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>

View file

@ -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")

View file

@ -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>