Tests: Restore fix to Plugin test on Watcom compiler
The fix in commit v3.4.0-rc1~127^2 (Tests: Fix Plugin test on Watcom compiler, 2015-09-03) was reverted accidentally by automated .c_str() removal. Restore it and add a comment explaining why.
This commit is contained in:
parent
fa277b29e4
commit
ceebac93f6
|
@ -31,7 +31,9 @@ int main()
|
|||
kwsys::DynamicLoader::LibraryHandle handle =
|
||||
kwsys::DynamicLoader::OpenLibrary(libName.c_str());
|
||||
if (!handle) {
|
||||
std::cerr << "Could not open plugin \"" << libName << "\"!" << std::endl;
|
||||
// Leave the .c_str() on this one. It is needed on OpenWatcom.
|
||||
std::cerr << "Could not open plugin \"" << libName.c_str() << "\"!"
|
||||
<< std::endl;
|
||||
return 1;
|
||||
}
|
||||
kwsys::DynamicLoader::SymbolPointer sym =
|
||||
|
|
Loading…
Reference in New Issue