Skip to content

Commit e5f64fc

Browse files
committed
chore(warn): Fix MSVC warning C4005.
Bumps GameSpySDK commit as part of this fix.
1 parent 882be71 commit e5f64fc

13 files changed

Lines changed: 3 additions & 26 deletions

File tree

Code/BandTest/BandTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
* Functions: *
4040
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
4141

42-
#define WIN32_LEAN_AND_MEAN
4342
#ifdef _WIN32
4443
#include <winsock2.h>
4544
#include <ws2tcpip.h>

Code/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ target_compile_definitions(wwcommon INTERFACE
88
NOMINMAX
99
WIN32_LEAN_AND_MEAN
1010
_WIN32_WINNT=0x501
11+
DIRECTINPUT_VERSION=0x800
1112
_CRT_NONSTDC_NO_WARNINGS
1213
_CRT_SECURE_NO_WARNINGS
1314
$<$<CONFIG:Debug>:WWDEBUG>

Code/Combat/directinput.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
#include "debug.h"
4040
#include "timemgr.h"
4141

42-
43-
#define DIRECTINPUT_VERSION 0x0800
4442
#include <dinput.h>
4543

4644
/*

Code/Combat/input.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@
5050
#include "combat.h"
5151
#include "ccamera.h"
5252

53-
54-
#define DIRECTINPUT_VERSION 0x0800
5553
#include <dinput.h>
5654

5755
#include <stdio.h>

Code/Commando/dlgcontrolslisttab.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
#include "string_ids.h"
4343
#include "translatedb.h"
4444

45-
46-
#define DIRECTINPUT_VERSION 0x0800
4745
#include <dinput.h>
4846
#include "directinput.h"
4947

Code/Launcher/winblows.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
** along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
#define WIN32_LEAN_AND_MEAN
2019
#include <windows.h>
2120
#include <windowsx.h>
2221
#include <stdlib.h>

Code/Launcher/winblows.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#ifndef WINBLOWS_HEADER
2020
#define WINBLOWS_HEADER
2121

22-
#define WIN32_LEAN_AND_MEAN
2322
#include <windows.h>
2423
#include <windowsx.h>
2524
#include <stdlib.h>

Code/Tools/MakeMix/StdAfx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
#pragma once
2929
#endif // _MSC_VER > 1000
3030

31-
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
32-
3331
#include <stdio.h>
3432

3533
// TODO: reference additional headers your program requires here

Code/Tools/SkeletonHack/StdAfx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
#pragma once
2929
#endif // _MSC_VER > 1000
3030

31-
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
32-
3331
#include <stdio.h>
3432
#include <stdlib.h>
3533
#include <assert.h>

Code/Tools/pluglib/win.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@
5454
#pragma warning(push, 3)
5555
#endif
5656

57-
// this define should also be in the DSP just in case someone includes windows stuff directly
58-
#ifndef WIN32_LEAN_AND_MEAN
59-
#define WIN32_LEAN_AND_MEAN
60-
#endif
61-
6257
#include <windows.h>
6358
//#include <mmsystem.h>
6459
//#include <windowsx.h>

0 commit comments

Comments
 (0)