Skip to content

Commit c5759bc

Browse files
committed
[GEN][ZH] Fix of missing includes
1 parent 78faa3f commit c5759bc

File tree

34 files changed

+52
-0
lines changed

34 files changed

+52
-0
lines changed

Generals/Code/GameEngine/Include/Common/Debug.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ DEBUG_EXTERN_C void ReleaseCrashLocalized(const AsciiString& p, const AsciiStrin
216216

217217
#ifdef DEBUG_PROFILE
218218

219+
#include <stdlib.h>
220+
219221
class SimpleProfiler
220222
{
221223
private:

Generals/Code/GameEngine/Include/Common/simpleplayer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#define SIMPLEPLAYER_H
2222

2323
#include "wmsdk.h"
24+
#include <tchar.h>
2425

2526
//
2627
// we preserve a list of "ready-to-free" list of wave headers for the

Generals/Code/GameEngine/Include/Common/urllaunch.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#ifndef URLLAUNCH_H
2121
#define URLLAUNCH_H
2222

23+
#include <windows.h>
24+
2325
HRESULT MakeEscapedURL( LPWSTR pszInURL, LPWSTR *ppszOutURL );
2426

2527
HRESULT LaunchURL( LPCWSTR pszURL );

Generals/Code/GameEngine/Include/GameClient/KeyDefs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
#endif
6464

6565
#include <dinput.h>
66+
#include <Lib/BaseType.h>
6667

6768
// USER INCLUDES //////////////////////////////////////////////////////////////
6869

Generals/Code/GameEngine/Source/Common/Audio/simpleplayer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
#include "Common/simpleplayer.h"
2121
#include "Common/urllaunch.h"
22+
#include "Common/Debug.h"
23+
#include <nserror.h>
24+
#include <wchar.h>
2225

2326

2427
///////////////////////////////////////////////////////////////////////////////

Generals/Code/GameEngine/Source/Common/Audio/urllaunch.cpp

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

1919

2020
#include "Common/urllaunch.h"
21+
#include <tchar.h>
22+
#include <wchar.h>
2123

2224
#define FILE_PREFIX L"file://"
2325

Generals/Code/GameEngine/Source/GameNetwork/GameSpy/Thread/BuddyThread.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040

4141
#include "mutex.h"
4242
#include "thread.h"
43+
#include <eh.h>
4344

4445
#ifdef _INTERNAL
4546
// for occasional debugging...

Generals/Code/GameEngine/Source/GameNetwork/GameSpy/Thread/GameResultsThread.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "GameNetwork/GameSpy/GameResultsThread.h"
3434
#include "mutex.h"
3535
#include "thread.h"
36+
#include <eh.h>
3637

3738
#include "Common/StackDump.h"
3839
#include "Common/SubsystemInterface.h"

Generals/Code/GameEngine/Source/GameNetwork/GameSpy/Thread/PeerThread.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#include "strtok_r.h"
4646
#include "mutex.h"
4747
#include "thread.h"
48+
#include <eh.h>
4849

4950
#include "Common/MiniLog.h"
5051

Generals/Code/GameEngine/Source/GameNetwork/GameSpy/Thread/PersistentStorageThread.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
#include "mutex.h"
3939
#include "thread.h"
40+
#include <eh.h>
4041

4142
#include "Common/StackDump.h"
4243
#include "Common/SubsystemInterface.h"

Generals/Code/GameEngine/Source/GameNetwork/GameSpy/Thread/PingThread.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "GameNetwork/GameSpy/PingThread.h"
3434
#include "mutex.h"
3535
#include "thread.h"
36+
#include <eh.h>
3637

3738
#include "Common/StackDump.h"
3839
#include "Common/SubsystemInterface.h"

Generals/Code/GameEngineDevice/Include/W3DDevice/GameClient/WorldHeightMap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "WWLib/refcount.h"
3737
#include "WWMath/vector3.h"
3838
#include "W3DDevice/GameClient/TileData.h"
39+
#include "W3DDevice/GameClient/TerrainTex.h"
3940
#include "../../GameEngine/Include/Common/MapObject.h"
4041

4142
#include "Common/STLTypedefs.h"

Generals/Code/Libraries/Source/WWVegas/WW3D2/w3d_dep.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
* Make_W3D_Filename -- Converts a W3D object name into a W3D filename. *
4949
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
5050

51+
#include <stddef.h>
52+
5153
//-----------------------------------------------------------------------------
5254
// srj sez: hack festival :-(
5355
class STLSpecialAlloc

Generals/Code/Libraries/Source/WWVegas/WWDebug/wwmemlog.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
#ifndef WWMEMLOG_H
4545
#define WWMEMLOG_H
4646

47+
#include <stddef.h>
48+
4749
class MemLogClass;
4850

4951
/**

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ DEBUG_EXTERN_C void ReleaseCrashLocalized(const AsciiString& p, const AsciiStrin
220220

221221
#ifdef DEBUG_PROFILE
222222

223+
#include <stdlib.h>
224+
223225
class SimpleProfiler
224226
{
225227
private:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#define SIMPLEPLAYER_H
2222

2323
#include "wmsdk.h"
24+
#include <tchar.h>
2425

2526
//
2627
// we preserve a list of "ready-to-free" list of wave headers for the

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#ifndef URLLAUNCH_H
2121
#define URLLAUNCH_H
2222

23+
#include <windows.h>
24+
2325
HRESULT MakeEscapedURL( LPWSTR pszInURL, LPWSTR *ppszOutURL );
2426

2527
HRESULT LaunchURL( LPCWSTR pszURL );

GeneralsMD/Code/GameEngine/Include/GameClient/KeyDefs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
#endif
6464

6565
#include <dinput.h>
66+
#include <Lib/BaseType.h>
6667

6768
// USER INCLUDES //////////////////////////////////////////////////////////////
6869

GeneralsMD/Code/GameEngine/Source/Common/Audio/simpleplayer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
#include "Common/simpleplayer.h"
2121
#include "Common/urllaunch.h"
22+
#include "Common/Debug.h"
23+
#include <nserror.h>
24+
#include <wchar.h>
2225

2326

2427
///////////////////////////////////////////////////////////////////////////////

GeneralsMD/Code/GameEngine/Source/Common/Audio/urllaunch.cpp

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

1919

2020
#include "Common/urllaunch.h"
21+
#include <tchar.h>
22+
#include <wchar.h>
2123

2224
#define FILE_PREFIX L"file://"
2325

GeneralsMD/Code/GameEngine/Source/GameNetwork/GameSpy/Thread/BuddyThread.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040

4141
#include "mutex.h"
4242
#include "thread.h"
43+
#include <eh.h>
4344

4445
#ifdef _INTERNAL
4546
// for occasional debugging...

GeneralsMD/Code/GameEngine/Source/GameNetwork/GameSpy/Thread/GameResultsThread.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "GameNetwork/GameSpy/GameResultsThread.h"
3434
#include "mutex.h"
3535
#include "thread.h"
36+
#include <eh.h>
3637

3738
#include "Common/StackDump.h"
3839
#include "Common/SubsystemInterface.h"

GeneralsMD/Code/GameEngine/Source/GameNetwork/GameSpy/Thread/PeerThread.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#include "strtok_r.h"
4646
#include "mutex.h"
4747
#include "thread.h"
48+
#include <eh.h>
4849

4950
#include "Common/MiniLog.h"
5051

GeneralsMD/Code/GameEngine/Source/GameNetwork/GameSpy/Thread/PersistentStorageThread.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
#include "mutex.h"
4040
#include "thread.h"
41+
#include <eh.h>
4142

4243
#include "Common/StackDump.h"
4344
#include "Common/SubsystemInterface.h"

GeneralsMD/Code/GameEngine/Source/GameNetwork/GameSpy/Thread/PingThread.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "GameNetwork/GameSpy/PingThread.h"
3434
#include "mutex.h"
3535
#include "thread.h"
36+
#include <eh.h>
3637

3738
#include "Common/StackDump.h"
3839
#include "Common/SubsystemInterface.h"

GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/WorldHeightMap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "WWLib/refcount.h"
3737
#include "WWMath/vector3.h"
3838
#include "W3DDevice/GameClient/TileData.h"
39+
#include "W3DDevice/GameClient/TerrainTex.h"
3940
#include "../../GameEngine/Include/Common/MapObject.h"
4041

4142
#include "Common/STLTypedefs.h"

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
* Make_W3D_Filename -- Converts a W3D object name into a W3D filename. *
4949
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
5050

51+
#include <stddef.h>
52+
5153
//-----------------------------------------------------------------------------
5254
// srj sez: hack festival :-(
5355
class STLSpecialAlloc

GeneralsMD/Code/Libraries/Source/WWVegas/WWDebug/wwmemlog.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
#ifndef WWMEMLOG_H
4545
#define WWMEMLOG_H
4646

47+
#include <stddef.h>
48+
4749
#define LOG_MEMORY // Comment this out to disable memlog compiling in
4850

4951
class MemLogClass;

GeneralsMD/Code/Libraries/Source/debug/debug_debug.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <stdio.h>
3232
#include <string.h>
3333
#include <new> // needed for placement new prototype
34+
#include <eh.h>
3435

3536
// a little dummy variable that makes the linker actually include
3637
// us...

GeneralsMD/Code/Libraries/Source/debug/debug_debug.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
#ifndef DEBUG_DEBUG_H // Include guard
3333
#define DEBUG_DEBUG_H
3434

35+
#include <stdlib.h>
36+
3537
/**
3638
\class Debug debug.h <rts/debug.h>
3739

GeneralsMD/Code/Libraries/Source/profile/internal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include "internal_highlevel.h"
3838
#include "internal_cmd.h"
3939
#include "internal_result.h"
40+
#include <stdlib.h>
4041

4142
#if !(defined(_MSC_VER) && _MSC_VER < 1300)
4243
#include <atomic>

GeneralsMD/Code/Libraries/Source/profile/internal_funclevel.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
#ifndef INTERNAL_FUNCLEVEL_H // Include guard
3333
#define INTERNAL_FUNCLEVEL_H
3434

35+
#include <stdlib.h>
36+
3537
class ProfileFuncLevelTracer
3638
{
3739
friend class ProfileCmdInterface;

GeneralsMD/Code/Libraries/Source/profile/profile_funclevel.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
#ifndef PROFILE_FUNCLEVEL_H // Include guard
3333
#define PROFILE_FUNCLEVEL_H
3434

35+
#include <stdlib.h>
36+
3537
/**
3638
\brief The function level profiler.
3739

GeneralsMD/Code/Libraries/Source/profile/profile_highlevel.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
#ifndef PROFILE_HIGHLEVEL_H // Include guard
3333
#define PROFILE_HIGHLEVEL_H
3434

35+
#include <stdlib.h>
36+
3537
/// \internal internal Id representation
3638
class ProfileId;
3739

0 commit comments

Comments
 (0)