Darwin dlopen functions is needed both for DYNLIB_CLASS and DYNAMIC_LOADER
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -416,13 +416,16 @@ wxObject *wxLibraries::CreateObject(const wxString& path)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __DARWIN__
|
#endif // wxUSE_DYNLIB_CLASS && !wxUSE_DYNAMIC_LOADER
|
||||||
|
|
||||||
|
#if defined(__DARWIN__) && (wxUSE_DYNLIB_CLASS || wxUSE_DYNAMIC_LOADER)
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// For Darwin/Mac OS X
|
// For Darwin/Mac OS X
|
||||||
// supply the sun style dlopen functions in terms of Darwin NS*
|
// supply the sun style dlopen functions in terms of Darwin NS*
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
#import <mach-o/dyld.h>
|
#include <stdio.h>
|
||||||
|
#include <mach-o/dyld.h>
|
||||||
|
|
||||||
static char dl_last_error[1024];
|
static char dl_last_error[1024];
|
||||||
|
|
||||||
@@ -494,6 +497,4 @@ void *dlsym(void *handle, const char *symbol)
|
|||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // __DARWIN__
|
#endif // defined(__DARWIN__) && (wxUSE_DYNLIB_CLASS || wxUSE_DYNAMIC_LOADER)
|
||||||
|
|
||||||
#endif // wxUSE_DYNLIB_CLASS
|
|
||||||
|
Reference in New Issue
Block a user