Skip to content

Commit

Permalink
Don't include windows.h from platform.h
Browse files Browse the repository at this point in the history
This partially reverts commit c150b98.
Now params.cpp includes host.h which also gets the definition for MAX_PATH.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Apr 21, 2019
1 parent bff6aaf commit 09255eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/ccutil/params.cpp
Expand Up @@ -25,9 +25,9 @@
#include <sstream> // for std::stringstream

#include "genericvector.h"
#include "host.h" // platform.h, windows.h for MAX_PATH
#include "tprintf.h"
#include "params.h"
#include "platform.h" // MAX_PATH

#define PLUS '+' //flag states
#define MINUS '-'
Expand Down
1 change: 0 additions & 1 deletion src/ccutil/platform.h
Expand Up @@ -20,7 +20,6 @@

#define DLLSYM
#ifdef _WIN32
# include <windows.h> // MAX_PATH
# ifndef NOMINMAX
# define NOMINMAX
# endif /* NOMINMAX */
Expand Down

0 comments on commit 09255eb

Please sign in to comment.