Skip to content

Commit 09255eb

Browse files
committed
Don't include windows.h from platform.h
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>
1 parent bff6aaf commit 09255eb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/ccutil/params.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
#include <sstream> // for std::stringstream
2626

2727
#include "genericvector.h"
28+
#include "host.h" // platform.h, windows.h for MAX_PATH
2829
#include "tprintf.h"
2930
#include "params.h"
30-
#include "platform.h" // MAX_PATH
3131

3232
#define PLUS '+' //flag states
3333
#define MINUS '-'

src/ccutil/platform.h

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
#define DLLSYM
2222
#ifdef _WIN32
23-
# include <windows.h> // MAX_PATH
2423
# ifndef NOMINMAX
2524
# define NOMINMAX
2625
# endif /* NOMINMAX */

0 commit comments

Comments
 (0)