engine: don't include windows headers, as they globally included by port.h already

This commit is contained in:
Alibek Omarov 2019-08-09 02:46:29 +03:00
parent 505392c2f8
commit 8bb6aa2c51
5 changed files with 8 additions and 23 deletions

View File

@ -20,11 +20,8 @@ GNU General Public License for more details.
#include "build.h"
#if !defined(_WIN32)
#include <limits.h>
#include <dlfcn.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#define PATH_SPLITTER "/"
@ -124,19 +121,15 @@ GNU General Public License for more details.
#define OS_LIB_PREFIX ""
#define OS_LIB_EXT "dll"
#define VGUI_SUPPORT_DLL "../vgui_support." OS_LIB_EXT
#ifdef XASH_64BIT
// windows NameForFunction not implemented yet
#define XASH_ALLOW_SAVERESTORE_OFFSETS
#endif
#ifdef XASH_64BIT
// windows NameForFunction not implemented yet
#define XASH_ALLOW_SAVERESTORE_OFFSETS
#endif
#endif //WIN32
#ifndef INT_MAX
#define INT_MAX 2147483647
#endif
#ifndef USHRT_MAX
#define USHRT_MAX 65535
#endif
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#if defined XASH_SDL && !defined REF_DLL
#include <SDL.h>

View File

@ -22,10 +22,6 @@ GNU General Public License for more details.
#include <SDL.h>
#endif
#ifdef _WIN32
#include "windows.h"
#endif
#include "platform/platform.h"
void* in_mousecursor;

View File

@ -17,9 +17,7 @@ GNU General Public License for more details.
#include "miniz.h"
#include "imagelib.h"
#include "mathlib.h"
#ifdef _WIN32
#include <winsock2.h>
#else
#ifndef _WIN32
#include <netinet/in.h>
#endif

View File

@ -19,7 +19,6 @@ GNU General Public License for more details.
#include "mathlib.h"
#ifdef _WIN32
// Winsock
#include <winsock2.h>
#include <WS2tcpip.h>
#else
// BSD sockets

View File

@ -13,7 +13,6 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#include <windows.h>
#include "platform/platform.h"
#include "menu_int.h"