Skip to content

Commit fee0c9e

Browse files
committed
Base: include Window.h on Windows
This header is used pervasively, and we use certain types defined from this umbrella header.
1 parent c644901 commit fee0c9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CoreFoundation/Base.subproj/ForSwiftFoundationOnly.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
#include <CoreFoundation/CFURLSessionInterface.h>
2727
#include <CoreFoundation/ForFoundationOnly.h>
2828
#if DEPLOYMENT_TARGET_WINDOWS
29+
#define NOMINMAX
30+
#define WIN32_LEAN_AND_MEAN
31+
#include <Windows.h>
2932
#else
3033
#include <fts.h>
3134
#endif

0 commit comments

Comments
 (0)