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:
parent
49483d3b05
commit
92b6fd6944
@ -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
|
||||
|
@ -31,8 +31,6 @@
|
||||
#include "netadr.h"
|
||||
#include "BitBuffer.h"
|
||||
|
||||
#undef SetPort
|
||||
|
||||
class NetAddress {
|
||||
public:
|
||||
NetAddress();
|
||||
|
@ -28,6 +28,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||
#include <windows.h>
|
||||
#include "TextConsole.h"
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "conproc.h"
|
||||
#include <mmsystem.h> // timeGetTime
|
||||
#else
|
||||
#include <signal.h>
|
||||
#endif // _WIN32
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user