aboutsummaryrefslogtreecommitdiff
path: root/backends/plugins
diff options
context:
space:
mode:
authorTony Puccinelli2010-08-03 22:08:32 +0000
committerTony Puccinelli2010-08-03 22:08:32 +0000
commit520c0a40098a9687f4d85343267cda9c5b5c971b (patch)
tree9bd9cb6a73552a7230b05c5b718905c2c83c1607 /backends/plugins
parent9f5bcadaea8bb51efb21d23b24a3ff4fafd9bb05 (diff)
downloadscummvm-rg350-520c0a40098a9687f4d85343267cda9c5b5c971b.tar.gz
scummvm-rg350-520c0a40098a9687f4d85343267cda9c5b5c971b.tar.bz2
scummvm-rg350-520c0a40098a9687f4d85343267cda9c5b5c971b.zip
added checks for ELF_LOADER_TARGET before including the elf plugin provider
svn-id: r51716
Diffstat (limited to 'backends/plugins')
-rw-r--r--backends/plugins/elf-loader.cpp4
-rw-r--r--backends/plugins/elf-provider.cpp4
-rw-r--r--backends/plugins/elf-provider.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/backends/plugins/elf-loader.cpp b/backends/plugins/elf-loader.cpp
index 24532740b4..a3b453ed0f 100644
--- a/backends/plugins/elf-loader.cpp
+++ b/backends/plugins/elf-loader.cpp
@@ -23,7 +23,7 @@
*
*/
-#if defined(DYNAMIC_MODULES) // TODO: && defined ELF loader target
+#if defined(DYNAMIC_MODULES) && defined(ELF_LOADER_TARGET)
#include <string.h>
#include <stdarg.h>
@@ -448,5 +448,5 @@ void *DLObject::symbol(const char *name) {
return NULL;
}
-#endif /* DYNAMIC_MODULES */
+#endif /* defined(DYNAMIC_MODULES) && defined(ELF_LOADER_TARGET) */
diff --git a/backends/plugins/elf-provider.cpp b/backends/plugins/elf-provider.cpp
index ae728495fa..76fa3cd6df 100644
--- a/backends/plugins/elf-provider.cpp
+++ b/backends/plugins/elf-provider.cpp
@@ -23,7 +23,7 @@
*
*/
-#if defined(DYNAMIC_MODULES) //TODO: && defined(ELF loader target)
+#if defined(DYNAMIC_MODULES) && defined(ELF_LOADER_TARGET)
#include "backends/plugins/elf-provider.h"
#include "backends/plugins/dynamic-plugin.h"
@@ -133,4 +133,4 @@ bool ELFPluginProvider::isPluginFilename(const Common::FSNode &node) const {
return true;
}
-#endif // defined(DYNAMIC_MODULES)
+#endif // defined(DYNAMIC_MODULES) && defined(ELF_LOADER_TARGET)
diff --git a/backends/plugins/elf-provider.h b/backends/plugins/elf-provider.h
index 10bd1c077f..a6b55d97f3 100644
--- a/backends/plugins/elf-provider.h
+++ b/backends/plugins/elf-provider.h
@@ -28,7 +28,7 @@
#include "base/plugins.h"
-#if defined(DYNAMIC_MODULES) // TODO: && defined(ELF-loader target)
+#if defined(DYNAMIC_MODULES) && defined(ELF_LOADER_TARGET)
class ELFPluginProvider : public FilePluginProvider {
protected:
@@ -38,6 +38,6 @@ protected:
};
-#endif // defined(DYNAMIC_MODULES)
+#endif // defined(DYNAMIC_MODULES) && defined(ELF_LOADER_TARGET)
#endif /* BACKENDS_PLUGINS_ELF_PROVIDER_H */