With latest dlcompat on OSX, no need anymore to manually prepend an underscore before symbol names

svn-id: r13367
This commit is contained in:
Max Horn 2004-03-23 00:16:36 +00:00
parent c61622ebaf
commit 66de19015b

View File

@ -124,13 +124,6 @@ public:
void *DynamicPlugin::findSymbol(const char *symbol) {
#ifdef UNIX
#ifdef MACOSX
// Need to prepend underscore on Mac OS X
char buffer[256];
buffer[0] = '_';
strcpy(buffer + 1, symbol);
symbol = buffer;
#endif
void *func = dlsym(_dlHandle, symbol);
if (!func)
warning("Failed loading symbol '%s' from plugin '%s' (%s)", symbol, _filename.c_str(), dlerror());