Committing in .

Modified Files:
 	wxWindows/src/common/dynlib.cpp

 VMS patch for second argument of dlopen
----------------------------------------------------------------------


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jouk Jansen
2001-01-18 13:35:51 +00:00
parent 27b1df435f
commit 99d96a2b78

View File

@@ -53,9 +53,13 @@
// note about dlopen() flags: we use RTLD_NOW to have more Windows-like // note about dlopen() flags: we use RTLD_NOW to have more Windows-like
// behaviour (Win won't let you load a library with missing symbols) and // behaviour (Win won't let you load a library with missing symbols) and
// RTLD_GLOBAL because it is needed sometimes and probably doesn't hurt // RTLD_GLOBAL because it is needed sometimes and probably doesn't hurt
// otherwise // otherwise. On VMS the second argument on dlopen is ignored.
# define wxDllOpen(lib) dlopen(lib.fn_str(), RTLD_LAZY | RTLD_GLOBAL) #ifdef __VMS
# define wxDllGetSymbol(handle, name) dlsym(handle, name) # define wxDllOpen(lib) dlopen(lib.fn_str(), 0 )
#else
# define wxDllOpen(lib) dlopen(lib.fn_str(), RTLD_LAZY | RTLD_GLOBAL)
#endif
#define wxDllGetSymbol(handle, name) dlsym(handle, name)
# define wxDllClose dlclose # define wxDllClose dlclose
#elif defined(HAVE_SHL_LOAD) #elif defined(HAVE_SHL_LOAD)
# define wxDllOpen(lib) shl_load(lib.fn_str(), BIND_DEFERRED, 0) # define wxDllOpen(lib) shl_load(lib.fn_str(), BIND_DEFERRED, 0)