From fa27a822e76cab572b58ea084dbaabacb9373f6b Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Mon, 14 Oct 2024 20:12:26 +0200 Subject: [PATCH] Fix #include Inclusion must take place in top-level scope. --- Source/Common/gdcmFilename.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Common/gdcmFilename.cxx b/Source/Common/gdcmFilename.cxx index 5384510db..d6ac2156e 100644 --- a/Source/Common/gdcmFilename.cxx +++ b/Source/Common/gdcmFilename.cxx @@ -17,6 +17,10 @@ #include // realpath #include +#if defined(_WIN32) && (defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__MINGW32__)) +#include +#endif + namespace gdcm { @@ -97,7 +101,6 @@ const char *Filename::ToUnixSlashes() } #if defined(_WIN32) && (defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__MINGW32__)) -#include inline void Realpath(const char *path, std::string & resolved_path) {