Sfoglia il codice sorgente

Merge topic 'watcom-workaround'

ceebac93 Tests: Restore fix to Plugin test on Watcom compiler
Brad King 9 anni fa
parent
commit
5d078868f0
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      Tests/Plugin/src/example_exe.cxx

+ 3 - 1
Tests/Plugin/src/example_exe.cxx

@@ -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 =