using proper dylib for darwin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -50,8 +50,12 @@ void DynamicLibraryTestCase::Load()
|
|||||||
static const wxChar *LIB_NAME = wxT("kernel32.dll");
|
static const wxChar *LIB_NAME = wxT("kernel32.dll");
|
||||||
static const wxChar *FUNC_NAME = wxT("lstrlenA");
|
static const wxChar *FUNC_NAME = wxT("lstrlenA");
|
||||||
#elif defined(__UNIX__)
|
#elif defined(__UNIX__)
|
||||||
|
#ifdef __DARWIN__
|
||||||
|
static const wxChar *LIB_NAME = wxT("/usr/lib/libc.dylib");
|
||||||
|
#else
|
||||||
// weird: using just libc.so does *not* work!
|
// weird: using just libc.so does *not* work!
|
||||||
static const wxChar *LIB_NAME = wxT("/lib/libc.so.6");
|
static const wxChar *LIB_NAME = wxT("/lib/libc.so.6");
|
||||||
|
#endif
|
||||||
static const wxChar *FUNC_NAME = wxT("strlen");
|
static const wxChar *FUNC_NAME = wxT("strlen");
|
||||||
#else
|
#else
|
||||||
#error "don't know how to test wxDllLoader on this platform"
|
#error "don't know how to test wxDllLoader on this platform"
|
||||||
|
Reference in New Issue
Block a user