mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-09 18:45:40 +00:00
RTLD_SELF is a recent addition on Linux.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6959 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
1bcad428ea
commit
d002a97575
@ -120,11 +120,10 @@ int DynamicLibrary::Unload()
|
|||||||
library_file.c_str(), library);
|
library_file.c_str(), library);
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
retval = FreeLibrary(library);
|
retval = FreeLibrary(library);
|
||||||
|
#elif defined __linux__
|
||||||
|
retval = dlclose(library) ? 0 : 1;
|
||||||
#else
|
#else
|
||||||
if (library == RTLD_SELF)
|
return 1;
|
||||||
return 1;
|
|
||||||
else
|
|
||||||
retval = dlclose(library) ? 0 : 1;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (! retval) {
|
if (! retval) {
|
||||||
|
@ -24,8 +24,6 @@ if env['HAVE_WX']:
|
|||||||
'ARCodeAddEdit.cpp',
|
'ARCodeAddEdit.cpp',
|
||||||
'GeckoCodeDiag.cpp',
|
'GeckoCodeDiag.cpp',
|
||||||
'ConfigMain.cpp',
|
'ConfigMain.cpp',
|
||||||
'DSPHLEConfigDlg.cpp',
|
|
||||||
'DSPLLEConfigDlg.cpp',
|
|
||||||
'Frame.cpp',
|
'Frame.cpp',
|
||||||
'FrameAui.cpp',
|
'FrameAui.cpp',
|
||||||
'FrameTools.cpp',
|
'FrameTools.cpp',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user