diff options
author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2006-12-08 20:52:30 (GMT) |
---|---|---|
committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2006-12-08 20:52:30 (GMT) |
commit | 458fa7559be7f0f2376262897cfae866e25a08d5 (patch) | |
tree | fa98b76f6607336c906e4f86b2883cfdaeab9faa /Source/kwsys/DynamicLoader.hxx.in | |
parent | 1dd5db023592c3c5488adb67dfba433ab5b399af (diff) | |
download | CMake-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.hxx.in')
-rw-r--r-- | Source/kwsys/DynamicLoader.hxx.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/DynamicLoader.hxx.in b/Source/kwsys/DynamicLoader.hxx.in index 72dea57..75177cc 100644 --- a/Source/kwsys/DynamicLoader.hxx.in +++ b/Source/kwsys/DynamicLoader.hxx.in @@ -18,7 +18,7 @@ #if defined(__hpux) #include <dl.h> -#elif defined(_WIN32) +#elif defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) #include <windows.h> #elif defined(__APPLE__) #include <AvailabilityMacros.h> @@ -56,7 +56,7 @@ public: // They are different on several different OS's #if defined(__hpux) typedef shl_t LibraryHandle; -#elif defined(_WIN32) +#elif defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) typedef HMODULE LibraryHandle; #elif defined(__APPLE__) #if MAC_OS_X_VERSION_MAX_ALLOWED < 1030 |