]> git.saurik.com Git - wxWidgets.git/commitdiff
Committing in .
authorJouk Jansen <joukj@hrem.nano.tudelft.nl>
Thu, 18 Jan 2001 13:35:51 +0000 (13:35 +0000)
committerJouk Jansen <joukj@hrem.nano.tudelft.nl>
Thu, 18 Jan 2001 13:35:51 +0000 (13:35 +0000)
 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

src/common/dynlib.cpp

index ca16df0daa299af6eb85081a7efae0d39ef8b56b..39c53cd2ee6eb0b3720f8c5d98ca97a7690ad9e9 100644 (file)
     // 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
     // RTLD_GLOBAL because it is needed sometimes and probably doesn't hurt
-    // otherwise
-#   define wxDllOpen(lib)                dlopen(lib.fn_str(), RTLD_LAZY | RTLD_GLOBAL)
-#   define wxDllGetSymbol(handle, name)  dlsym(handle, name)
+    // otherwise. On VMS the second argument on dlopen is ignored.
+#ifdef __VMS
+# 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
 #elif defined(HAVE_SHL_LOAD)
 #   define wxDllOpen(lib)                shl_load(lib.fn_str(), BIND_DEFERRED, 0)