summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/DynamicLoader.cxx
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2006-12-08 20:52:30 (GMT)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2006-12-08 20:52:30 (GMT)
commit458fa7559be7f0f2376262897cfae866e25a08d5 (patch)
treefa98b76f6607336c906e4f86b2883cfdaeab9faa /Source/kwsys/DynamicLoader.cxx
parent1dd5db023592c3c5488adb67dfba433ab5b399af (diff)
downloadCMake-458fa7559be7f0f2376262897cfae866e25a08d5.zip
CMake-458fa7559be7f0f2376262897cfae866e25a08d5.tar.gz
CMake-458fa7559be7f0f2376262897cfae866e25a08d5.tar.bz2
BUG: Make sure to use the Win32 interface (HINSTANCE) for handling shared lib on cygwin and mingw system
Diffstat (limited to 'Source/kwsys/DynamicLoader.cxx')
-rw-r--r--Source/kwsys/DynamicLoader.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/DynamicLoader.cxx b/Source/kwsys/DynamicLoader.cxx
index 87f957f..4b73322 100644
--- a/Source/kwsys/DynamicLoader.cxx
+++ b/Source/kwsys/DynamicLoader.cxx
@@ -220,7 +220,7 @@ const char* DynamicLoader::LastError()
// ---------------------------------------------------------------
// 3. Implementation for Windows win32 code
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)
#include <windows.h>
#define DYNAMICLOADER_DEFINED 1