git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@792
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// System dependent include
// ---------------------------------------------------------------------------
// System dependent include
// ---------------------------------------------------------------------------
+#if defined(__UNIX__) || defined(__unix__)
#include <dlfcn.h>
#endif
#include <dlfcn.h>
#endif
wxLibrary::~wxLibrary()
{
if (m_handle && m_destroy) {
wxLibrary::~wxLibrary()
{
if (m_handle && m_destroy) {
+#if defined(__UNIX__) || defined(__unix__)
dlclose(m_handle);
#endif
#ifdef __WINDOWS__
dlclose(m_handle);
#endif
#ifdef __WINDOWS__
void *wxLibrary::GetSymbol(const wxString& symbname)
{
void *wxLibrary::GetSymbol(const wxString& symbname)
{
+#if defined(__UNIX__) || defined(__unix__)
return dlsym(m_handle, WXSTRINGCAST symbname);
#endif
#ifdef __WINDOWS__
return dlsym(m_handle, WXSTRINGCAST symbname);
#endif
#ifdef __WINDOWS__
old_sm_first = wxClassInfo::sm_first;
wxClassInfo::sm_first = NULL;
old_sm_first = wxClassInfo::sm_first;
wxClassInfo::sm_first = NULL;
+#if defined(__UNIX__) || defined(__unix__)
lib_name.Prepend("./lib");
lib_name += ".so";
lib_name.Prepend("./lib");
lib_name += ".so";
while (node) {
obj = ((wxLibrary *)node->Data())->CreateObject(path);
while (node) {
obj = ((wxLibrary *)node->Data())->CreateObject(path);
return obj;
node = node->Next();
return obj;
node = node->Next();