2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-28 15:45:46 +03:00

Add WIN32_LEAN_AND_MEAN to prevent tons of unused windows definitions from headers. (#470)

This commit is contained in:
Dmitry Novikov 2017-05-12 00:06:45 +03:00 committed by GitHub
parent 49483d3b05
commit 92b6fd6944
7 changed files with 5 additions and 3 deletions

View File

@ -46,7 +46,6 @@ const int DEMO_PROTOCOL = 5;
const int DEMO_STARTUP = 0; // this lump contains startup info needed to spawn into the server
const int DEMO_NORMAL = 1; // this lump contains playback info of messages, etc., needed during playback.
#undef PlaySound
enum class DemoCmd : unsigned char {
Unknown = 0,
NoRewind, // startup message

View File

@ -31,8 +31,6 @@
#include "netadr.h"
#include "BitBuffer.h"
#undef SetPort
class NetAddress {
public:
NetAddress();

View File

@ -28,6 +28,7 @@
#pragma once
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include "TextConsole.h"

View File

@ -24,6 +24,7 @@
#ifdef _WIN32
#include "conproc.h"
#include <mmsystem.h> // timeGetTime
#else
#include <signal.h>
#endif // _WIN32

View File

@ -29,6 +29,7 @@
#pragma once
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include <io.h>
#include <direct.h>

View File

@ -48,6 +48,7 @@
#include <functional>
#ifdef _WIN32 // WINDOWS
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include <winsock.h>
#include <wsipx.h> // for support IPX

View File

@ -74,6 +74,7 @@
#include <string.h>
#if defined(JITASM_WIN)
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#else
#include <unistd.h>