mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 05:16:58 +00:00
Tests/Plugin: Fix symbol lookup with 64-bit Embarcadero compilers
The 32-bit Borland and Embarcadero compilers prefix C symbol names with an underscore. The 64-bit Embarcadero compilers also define __BORLANDC__ but do not add the prefix.
This commit is contained in:
1 parent
cdfd0615b8
commit
641d5321a7
1 file changed
+1
-1
@@ -111,7 +111,7 @@ DynamicLoader::SymbolPointer DynamicLoader::GetSymbolAddress(
|
||||
DynamicLoader::LibraryHandle lib, std::string const& sym)
|
||||
{
|
||||
void* result;
|
||||
# if defined(__BORLANDC__) || defined(__WATCOMC__)
|
||||
# if (defined(__BORLANDC__) && !defined(_WIN64)) || defined(__WATCOMC__)
|
||||
// Need to prepend symbols with '_'
|
||||
std::string ssym = '_' + sym;
|
||||
char const* rsym = ssym.c_str();
|
||||
|
||||
Reference in new issue
Block a user