Skip to content

Commit 589f960

Browse files
authored
fix: Resolve macro redefinition warnings (TheSuperHackers#2525)
1 parent fb77779 commit 589f960

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

Core/Libraries/Source/WWVegas/WWDownload/registry.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@
2020
// Simple interface for storing/retrieving registry values
2121
// Author: Matthew D. Campbell, December 2001
2222

23-
#include <string>
24-
25-
#define WIN32_LEAN_AND_MEAN
26-
#include <windows.h>
27-
2823
#include "Registry.h"
24+
#include <string>
25+
#include "win.h"
2926

3027
bool getStringFromRegistry(HKEY root, std::string path, std::string key, std::string& val)
3128
{

Core/Libraries/Source/WWVegas/WWLib/thread.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_WINNT 0x0400
2019

2120
#include "thread.h"
2221
#include "Except.h"

Generals/Code/Tools/WorldBuilder/include/WHeightMapEdit.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ typedef struct
5757
} TGlobalTextureClass;
5858

5959

60-
#define NUM_ALPHA_TILES 8
61-
6260
class WorldHeightMapEdit : public WorldHeightMap
6361
{
6462
protected:

0 commit comments

Comments
 (0)