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:
Lee Cantey authored and Brad King committed 2026-10-28 14:58:31 -04:00
1 parent cdfd0615b8
commit 641d5321a7
1 file changed
+1 -1
+1 -1
View File
@@ -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();