aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gdcm/include-no-namespace.diff
blob: 86c36335f601b398a812b9c321d513bb55eb4750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/Source/Common/gdcmFilename.cxx b/Source/Common/gdcmFilename.cxx
index 5384510..9c99f94 100644
--- a/Source/Common/gdcmFilename.cxx
+++ b/Source/Common/gdcmFilename.cxx
@@ -16,6 +16,9 @@
 #include <climits>
 #include <cstdlib> // realpath
 #include <cstring>
+#ifdef _WIN32
+#  include <windows.h>
+#endif
 
 namespace gdcm
 {
@@ -97,7 +100,6 @@ const char *Filename::ToUnixSlashes()
 }
 
 #if defined(_WIN32) && (defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__MINGW32__))
-#include <windows.h>
 
 inline void Realpath(const char *path, std::string & resolved_path)
 {