summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/DynamicLibrary.cpp
diff options
context:
space:
mode:
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