Skip to content

Commit e33d6eb

Browse files
feliwirFighter19
andcommitted
[Compat] Fix ZH WWSaveLoad compilation
Co-authored-by: Patrick Zacharias <[email protected]>
1 parent ceb7af7 commit e33d6eb

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Dependencies/Utility/Utility/StringCompat.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ typedef const char* LPCSTR;
44
typedef char* LPSTR;
55

66
// String functions
7+
inline char *_strlwr(char *str) {
8+
for (int i = 0; str[i] != '\0'; i++) {
9+
str[i] = tolower(str[i]);
10+
}
11+
return str;
12+
}
13+
14+
#define strlwr _strlwr
715
#define _vsnprintf vsnprintf
816
#define _snprintf snprintf
917
#define stricmp strcasecmp

GeneralsMD/Code/Libraries/Source/WWVegas/WWSaveLoad/pointerremap.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@
4343
#ifndef POINTERREMAP_H
4444
#define POINTERREMAP_H
4545

46-
#ifdef _UNIX
47-
#include "osdep/osdep.h"
48-
#endif
49-
5046
#include "always.h"
5147
#include "Vector.H"
5248

GeneralsMD/Code/Libraries/Source/WWVegas/WWSaveLoad/saveload.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
#include "wwprofile.h"
4747

4848
#pragma warning(disable:4201) // warning C4201: nonstandard extension used : nameless struct/union
49-
#include <windows.h>
5049
#include "systimer.h"
5150

5251

0 commit comments

Comments
 (0)