2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +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_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. const int DEMO_NORMAL = 1; // this lump contains playback info of messages, etc., needed during playback.
#undef PlaySound
enum class DemoCmd : unsigned char { enum class DemoCmd : unsigned char {
Unknown = 0, Unknown = 0,
NoRewind, // startup message NoRewind, // startup message

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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