1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

Tidied up some DynamicLibrary stuff and fixed a drop-shadow problem on mac.

This commit is contained in:
Julian Storer 2011-06-29 16:24:37 +01:00
parent 94a0bf1af1
commit b1a77fa391
27 changed files with 504 additions and 548 deletions

View file

@ -111,22 +111,4 @@ void Process::lowerPrivilege()
}
}
bool DynamicLibrary::open (const String& name)
{
close();
handle = dlopen (name.toUTF8(), RTLD_LOCAL | RTLD_NOW);
return handle != 0;
}
void DynamicLibrary::close() noexcept
{
if (handle != nullptr)
dlclose (handle);
}
void* DynamicLibrary::getFunction (const String& functionName) noexcept
{
return handle != nullptr ? dlsym (handle, functionName.toUTF8()) : nullptr;
}
#endif