Skip to content

Commit 05d3904

Browse files
committed
[ZH] Fix header include errors/mistakes for Zero Hour build (#426)
1 parent d001380 commit 05d3904

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

GeneralsMD/Code/GameEngine/Include/Common/Overridable.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
#ifndef _OVERRIDABLE_H_
3232
#define _OVERRIDABLE_H_
3333

34+
#include "Common/GameMemory.h"
35+
3436
/*
3537
In order for something to live in an OVERRIDE<> object, it must be derived from Overridable
3638
(publicly).

GeneralsMD/Code/GameEngine/Include/Common/Upgrade.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "Common/AudioEventRTS.h"
3737
#include "Common/INI.h"
3838
#include "Common/Snapshot.h"
39+
#include "Common/BitFlags.h"
3940

4041
// FORWARD REFERENCES /////////////////////////////////////////////////////////////////////////////
4142
class Player;

GeneralsMD/Code/GameEngine/Include/Common/Xfer.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
#define __XFER_H_
3636

3737
// INCLUDES ///////////////////////////////////////////////////////////////////////////////////////
38-
#include "Common/STLTypedefs.h"
39-
#include "Common/ModelState.h"
4038
#include "Common/Science.h"
4139
#include "Common/Upgrade.h"
4240

GeneralsMD/Code/GameEngine/Include/Common/crc.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@
3232
#define _CRC_H_
3333

3434
#include "Lib/BaseType.h"
35-
#include "winsock2.h" // for htonl
3635

3736
#ifdef _DEBUG
3837

38+
//#include "winsock2.h" // for htonl
39+
3940
class CRC
4041
{
4142
public:

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/IMEManager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747

4848
#include "PreRTS.h" // This must go first in EVERY cpp file int the GameEngine
4949

50-
#include "Windows.h"
5150
#include "mbstring.h"
5251

5352
#include "Common/Debug.h"

GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828

2929
#include "PreRTS.h" // This must go first in EVERY cpp file int the GameEngine
3030

31-
#include "windows.h"
32-
3331
#include "Common/GameType.h"
3432
#include "Common/MessageStream.h"
3533
#include "Common/Player.h"

GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DModelDraw.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434

3535
#define NO_DEBUG_CRC
3636

37+
#include <Windows.h>
38+
3739
#include "Common/CRC.h"
3840
#include "Common/CRCDebug.h"
3941
#include "Common/GameState.h"
@@ -43,7 +45,6 @@
4345
#include "Common/ThingTemplate.h"
4446
#include "Common/GameLOD.h"
4547
#include "Common/Xfer.h"
46-
#include "Common/GameState.h"
4748
#include "Common/QuickTrig.h"
4849
#include "GameClient/Drawable.h"
4950
#include "GameClient/FXList.h"

GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/pointgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
#include "rinfo.h"
8787
#include "camera.h"
8888
#include "dx8fvf.h"
89-
#include "D3DXMath.h"
89+
#include "D3DX8Math.h"
9090
#include "sortingrenderer.h"
9191

9292
// Upgraded to DX8 2/2/01 HY

GeneralsMD/Code/Libraries/Source/WWVegas/WWDownload/FTP.CPP

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include <time.h>
3434
#include "assert.h"
3535
#include "ftp.h"
36-
#include "winsock.h"
3736
#include <time.h>
3837
#include <direct.h>
3938
#include <errno.h>

GeneralsMD/Code/Libraries/Source/WWVegas/WWLib/always.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#define ALWAYS_H
4242

4343
#include <assert.h>
44+
#include <new>
4445

4546
// Disable warning about exception handling not being enabled. It's used as part of STL - in a part of STL we don't use.
4647
#pragma warning(disable : 4530)

0 commit comments

Comments
 (0)