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:
parent
94a0bf1af1
commit
b1a77fa391
27 changed files with 504 additions and 548 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue