ENH: Make sure that we find the proper symbol and not the one that start with _. STYLE: Remove an old style cast
This commit is contained in:
parent
011de35360
commit
97aca504d8
@ -305,7 +305,7 @@ int DynamicLoader::CloseLibrary(LibHandle lib)
|
|||||||
if (lib)
|
if (lib)
|
||||||
{
|
{
|
||||||
// The function dlclose() returns 0 on success, and non-zero on error.
|
// The function dlclose() returns 0 on success, and non-zero on error.
|
||||||
return !(int)dlclose(lib);
|
return !dlclose(lib);
|
||||||
}
|
}
|
||||||
// else
|
// else
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -89,7 +89,9 @@ int main(int , char *[])
|
|||||||
kwsys_stl::string libname = GetLibName("testDynload");
|
kwsys_stl::string libname = GetLibName("testDynload");
|
||||||
res += TestDynamicLoader(libname.c_str(), "dummy",1,0,1);
|
res += TestDynamicLoader(libname.c_str(), "dummy",1,0,1);
|
||||||
res += TestDynamicLoader(libname.c_str(), "TestDynamicLoaderFunction",1,1,1);
|
res += TestDynamicLoader(libname.c_str(), "TestDynamicLoaderFunction",1,1,1);
|
||||||
|
res += TestDynamicLoader(libname.c_str(), "_TestDynamicLoaderFunction",1,0,1);
|
||||||
res += TestDynamicLoader(libname.c_str(), "TestDynamicLoaderData",1,1,1);
|
res += TestDynamicLoader(libname.c_str(), "TestDynamicLoaderData",1,1,1);
|
||||||
|
res += TestDynamicLoader(libname.c_str(), "_TestDynamicLoaderData",1,0,1);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user