-// ----------------------------------------------------------------------------
-// conditional compilation
-// ----------------------------------------------------------------------------
-
-#if defined(HAVE_DLOPEN)
- #define wxDllOpen(lib) dlopen(lib, RTLD_LAZY)
- #define wxDllGetSymbol(handle, name) dlsym(handle, (char *)name)
- #define wxDllClose dlclose
-#elif defined(HAVE_SHLLOAD)
- #define wxDllOpen(lib) shl_open(lib, BIND_DEFERRED, 0)
- #define wxDllClose shl_unload
-
- static inline void *wxDllGetSymbol(shl_t *handle, const char *name)
- {
- void *sym;
- if ( shl_findsym(handle, name, TYPE_UNDEFINED, &sym) == 0 )
- return sym;
- else
- return (void *)0;
- }
-#elif defined(__WINDOWS__)
- #define wxDllOpen(lib) ::LoadLibrary(lib)
- #define wxDllGetSymbol(handle, name) ::GetProcAddress(handle, name)
- #define wxDllClose ::FreeLibrary
-#else
- #error "Don't know how to load shared libraries on this platform."
-#endif // OS
-
-// ---------------------------------------------------------------------------
-// Global variables
-// ---------------------------------------------------------------------------
-
-wxLibraries wxTheLibraries;
-
-// ----------------------------------------------------------------------------
-// private functions
-// ----------------------------------------------------------------------------