Skip to content

Commit e6dbd2a

Browse files
committed
[ZH] Fix misc and header include errors for Zero Hour Tools build (TheSuperHackers#509)
1 parent 6bc2760 commit e6dbd2a

File tree

6 files changed

+9
-3
lines changed

6 files changed

+9
-3
lines changed

GeneralsMD/Code/Tools/Autorun/autorun.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
#include <stdlib.h>
8888
#include <string.h>
8989
#include <stdio.h>
90-
#include <strstrea.h>
9190
#include <sys/stat.h>
9291
#include <time.h>
9392
#include <winuser.h>

GeneralsMD/Code/Tools/PATCHGET/CHATAPI.CPP

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
#include <windows.h>
3232
#include <initguid.h>
3333
#include <olectl.h>
34+
#if defined(_MSC_VER) && _MSC_VER < 1300
3435
#include <mapicode.h>
36+
#endif
3537
#include "RESOURCE.H"
3638
#include "WINBLOWS.H"
3739
#include <crtdbg.h>

GeneralsMD/Code/Tools/mangler/wlib/dictionary.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ your hashing function is good.
4444
#include <stdlib.h>
4545
#include <string.h>
4646
#include <assert.h>
47+
#include <crtdbg.h>
4748

4849
#include "wstypes.h"
4950

GeneralsMD/Code/Tools/matchbot/wlib/dictionary.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ your hashing function is good.
4444
#include <stdlib.h>
4545
#include <string.h>
4646
#include <assert.h>
47+
#include <crtdbg.h>
4748

4849
#include "wstypes.h"
4950

GeneralsMD/Code/Tools/wolSetup/WOLAPI/wolapi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,9 @@ void __RPC_STUB IRTPatcherEvent_OnTermination_Stub(
433433
/* interface IChat */
434434
/* [object][unique][helpstring][uuid] */
435435

436+
#if defined(_MSC_VER) && _MSC_VER < 1300
436437
typedef long time_t;
438+
#endif
437439

438440
typedef
439441
enum Locale

GeneralsMD/Code/Tools/wolSetup/wolSetup.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ extern char g_wolapiRealFilename[MAX_PATH];
3939
extern char g_generalsFilename[MAX_PATH];
4040
extern char g_generalsSerial[];
4141

42-
static MAJOR(unsigned long x) { return (((x) & 0xffff0000) >> 16); }
43-
static MINOR(unsigned long x) { return ((x) & 0xffff); }
42+
// TheSuperHackers @todo Check if this should be returning unsigned long.
43+
static int MAJOR(unsigned long x) { return (((x) & 0xffff0000) >> 16); }
44+
static int MINOR(unsigned long x) { return ((x) & 0xffff); }
4445

4546
#endif // __WOLSETUP_H__

0 commit comments

Comments
 (0)