From 90022ddc1e55045e8575e436f94bfad8b1b1075f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Feb 1999 22:43:48 +0000 Subject: [PATCH] compilation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dynlib.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index 447fb80a87..cf218301c2 100644 --- a/src/common/dynlib.cpp +++ b/src/common/dynlib.cpp @@ -56,7 +56,14 @@ return (void *)0; } #elif defined(__WINDOWS__) - #define wxDllOpen(lib) ::LoadLibrary(lib) + #include + + // using LoadLibraryEx under Win32 to avoid name clash with LoadLibrary + #ifdef __WIN32__ + #define wxDllOpen(lib) ::LoadLibraryEx(lib, 0, 0) + #else // Win16 + #define wxDllOpen(lib) ::LoadLibrary(lib) + #endif // Win32/16 #define wxDllGetSymbol(handle, name) ::GetProcAddress(handle, name) #define wxDllClose ::FreeLibrary #else -- 2.45.2