summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/DynamicLibrary.cpp
diff options
context:
space:
mode:
authorSonicadvance1 <sonicadvance1@gmail.com>2008-09-14 22:25:28 +0000
committerSonicadvance1 <sonicadvance1@gmail.com>2008-09-14 22:25:28 +0000
commit39aed329f9afeba42d6643057286845591771ff2 (patch)
treea713a0527ecc7141d452bd923053625ce713a17d /Source/Core/Common/Src/DynamicLibrary.cpp
parent6c007ceff072365ed514f8918cceb944c6397698 (diff)
Fixes Sorting in Linux, already tested in Windows. and if logging isn't enabled when loading a dynamic library in Linux, it will print instead of log
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@527 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/DynamicLibrary.cpp')
-rw-r--r--Source/Core/Common/Src/DynamicLibrary.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/DynamicLibrary.cpp b/Source/Core/Common/Src/DynamicLibrary.cpp
index c0133576c7..07b30cdba7 100644
--- a/Source/Core/Common/Src/DynamicLibrary.cpp
+++ b/Source/Core/Common/Src/DynamicLibrary.cpp
@@ -81,7 +81,11 @@ bool DynamicLibrary::Load(const char* filename)
library = dlopen(filename, RTLD_NOW | RTLD_LOCAL);
if (!library)
{
- LOG(MASTER_LOG, "Error loading DLL %s: %s", filename, dlerror());
+ #ifdef LOGGING
+ LOG(MASTER_LOG, "Error loading DLL %s: %s", filename, dlerror());
+ #else
+ printf("Error loading DLL %s: %s", filename, dlerror());
+ #endif
return false;
}
#endif