diff --git a/src/sdl/i_main.c b/src/sdl/i_main.c index 4cae148f9..9b951429f 100644 --- a/src/sdl/i_main.c +++ b/src/sdl/i_main.c @@ -152,16 +152,11 @@ int main(int argc, char **argv) // XP and Vista users can't use the newest exchndl.dll // and older exchndl.dll won't work with release builds >= 2.1.21 // Check for >= Version 6.1 (>= Win7) -#if defined(_INC_VERSIONHELPERS) || defined(_versionhelpers_H_INCLUDED_) - if (IsWindows7OrGreater()) - LoadLibraryA("exchndl.dll"); -#else DWORD winversion = GetVersion(); DWORD major = (DWORD)(LOBYTE(LOWORD(winversion))); DWORD minor = (DWORD)(HIBYTE(LOWORD(winversion))); if (major > 6 || (major == 6 && minor > 0)) LoadLibraryA("exchndl.dll"); -#endif } } #ifndef __MINGW32__ diff --git a/src/sdl12/i_main.c b/src/sdl12/i_main.c index 219c65213..6494564d4 100644 --- a/src/sdl12/i_main.c +++ b/src/sdl12/i_main.c @@ -221,16 +221,11 @@ int main(int argc, char **argv) // XP and Vista users can't use the newest exchndl.dll // and older exchndl.dll won't work with release builds >= 2.1.21 // Check for >= Version 6.1 (>= Win7) -#if defined(_INC_VERSIONHELPERS) || defined(_versionhelpers_H_INCLUDED_) - if (IsWindows7OrGreater()) - LoadLibraryA("exchndl.dll"); -#else DWORD winversion = GetVersion(); DWORD major = (DWORD)(LOBYTE(LOWORD(winversion))); DWORD minor = (DWORD)(HIBYTE(LOWORD(winversion))); if (major > 6 || (major == 6 && minor > 0)) LoadLibraryA("exchndl.dll"); -#endif } } #endif diff --git a/src/win32/win_main.c b/src/win32/win_main.c index 06c17fe3f..3da9e89ae 100644 --- a/src/win32/win_main.c +++ b/src/win32/win_main.c @@ -668,16 +668,11 @@ int WINAPI WinMain (HINSTANCE hInstance, // XP and Vista users can't use the newest exchndl.dll // and older exchndl.dll won't work with release builds >= 2.1.21 // Check for >= Version 6.1 (Win7) -#if defined(_INC_VERSIONHELPERS) || defined(_versionhelpers_H_INCLUDED_) - if (IsWindows7OrGreater()) - LoadLibraryA("exchndl.dll"); -#else DWORD winversion = GetVersion(); DWORD major = (DWORD)(LOBYTE(LOWORD(winversion))); DWORD minor = (DWORD)(HIBYTE(LOWORD(winversion))); if (major > 6 || (major == 6 && minor > 0)) LoadLibraryA("exchndl.dll"); -#endif #if 0 } #endif