Skip to content

Commit b31bcb2

Browse files
author
Tal Hadad
committed
include windows.h always if in SIMPLECPP_WINDOWS
1 parent 068b825 commit b31bcb2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

externals/simplecpp/simplecpp.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@
4242

4343
#ifdef _WIN32
4444
#include <direct.h>
45-
#include <windows.h>
46-
#undef ERROR
4745
#else
4846
#include <unistd.h>
4947
#endif
5048

49+
#ifdef SIMPLECPP_WINDOWS
50+
#include <windows.h>
51+
#undef ERROR
52+
#endif
53+
5154
#if __cplusplus >= 201103L
5255
#define OVERRIDE override
5356
#define EXPLICIT explicit

0 commit comments

Comments
 (0)