forked from mirrors/0ad
# Optimisations for Linux
GCC: Don't export symbols from DSOs by default - see http://gcc.gnu.org/wiki/Visibility This was SVN commit r4812.
This commit is contained in:
@@ -72,6 +72,15 @@ bool DllLoader::LoadDLL()
|
||||
return (m_Handle != HANDLE_UNAVAILABLE);
|
||||
}
|
||||
|
||||
void DllLoader::Unload()
|
||||
{
|
||||
if (! IsLoaded())
|
||||
return;
|
||||
|
||||
dlclose(m_Handle);
|
||||
m_Handle = 0;
|
||||
}
|
||||
|
||||
void DllLoader::LoadSymbolInternal(const char* name, void** fptr) const
|
||||
{
|
||||
if (! IsLoaded())
|
||||
|
||||
Reference in New Issue
Block a user