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:
Gilles Depeyrot
2002-02-22 21:42:06 +00:00
parent dbb846c622
commit 229d3f1c1f

View File

@@ -416,13 +416,16 @@ wxObject *wxLibraries::CreateObject(const wxString& path)
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
// 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];
@@ -494,6 +497,4 @@ void *dlsym(void *handle, const char *symbol)
return addr;
}
#endif // __DARWIN__
#endif // wxUSE_DYNLIB_CLASS
#endif // defined(__DARWIN__) && (wxUSE_DYNLIB_CLASS || wxUSE_DYNAMIC_LOADER)