added appropriate ifdefs throughout the plugins directory

svn-id: r52053
This commit is contained in:
Tony Puccinelli 2010-08-13 02:58:52 +00:00
parent 139a96182d
commit 62d8126df0
8 changed files with 31 additions and 9 deletions

View file

@ -23,6 +23,8 @@
*
*/
#if defined(DYNAMIC_MODULES) && defined(ARM_TARGET)
#include "backends/fs/ds/ds-fs.h"
#include "elf-loader.h"
#include "dsmain.h"
@ -35,3 +37,5 @@ protected:
public:
ARMDLObject() : DLObject() {}
};
#endif /* defined(DYNAMIC_MODULES) && defined(ARM_TARGET) */

View file

@ -23,10 +23,12 @@
*
*/
#if defined(DYNAMIC_MODULES) && defined(__DS__)
#include "backends/plugins/elf-provider.h"
class DSPluginProvider : public ELFPluginProvider {
Plugin* createPlugin(const Common::FSNode &node) const;
};
#endif // defined(DYNAMIC_MODULES) && defined(ELF_LOADER_TARGET)

View file

@ -23,6 +23,8 @@
*
*/
#if defined(DYNAMIC_MODULES) && defined(ELF_LOADER_TARGET)
#ifndef ELF_LOADER_H
#define ELF_LOADER_H
@ -65,3 +67,5 @@ public:
};
#endif /* ELF_LOADER_H */
#endif /* defined(DYNAMIC_MODULES) && defined(ELF_LOADER_TARGET) */

View file

@ -23,6 +23,8 @@
*
*/
#if defined(DYNAMIC_MODULES) && defined(ELF_LOADER_TARGET)
#ifndef BACKENDS_PLUGINS_ELF_PROVIDER_H
#define BACKENDS_PLUGINS_ELF_PROVIDER_H
@ -32,8 +34,6 @@
#include "backends/plugins/elf-loader.h"
#if defined(DYNAMIC_MODULES) && defined(ELF_LOADER_TARGET)
class ELFPlugin : public DynamicPlugin {
protected:
DLObject *_dlHandle;
@ -65,6 +65,6 @@ protected:
};
#endif // defined(DYNAMIC_MODULES) && defined(ELF_LOADER_TARGET)
#endif /* BACKENDS_PLUGINS_ELF_PROVIDER_H */
#endif // defined(DYNAMIC_MODULES) && defined(ELF_LOADER_TARGET)

View file

@ -24,6 +24,8 @@
*
*/
#if defined(DYNAMIC_MODULES) && defined(MIPS_TARGET)
#include "elf-loader.h"
#include "shorts-segment-manager.h"
@ -44,3 +46,5 @@ public:
_gpVal = 0;
}
};
#endif /* defined(DYNAMIC_MODULES) && defined(MIPS_TARGET) */

View file

@ -23,9 +23,13 @@
*
*/
#if defined(DYNAMIC_MODULES) && defined(__PLAYSTATION2__)
#include "backends/plugins/elf-provider.h"
class PS2PluginProvider : public ELFPluginProvider {
Plugin* createPlugin(const Common::FSNode &node) const;
};
#endif // defined(DYNAMIC_MODULES) && defined(ELF_LOADER_TARGET)

View file

@ -23,17 +23,17 @@
*
*/
#if defined(DYNAMIC_MODULES) && defined(__PSP__)
#ifndef BACKENDS_PLUGINS_PSP_PSP_PROVIDER_H
#define BACKENDS_PLUGINS_PSP_PSP_PROVIDER_H
#include "backends/plugins/elf-provider.h"
#if defined(DYNAMIC_MODULES) && defined(__PSP__)
class PSPPluginProvider : public ELFPluginProvider {
Plugin* createPlugin(const Common::FSNode &node) const;
};
#endif // defined(DYNAMIC_MODULES) && defined(__PSP__)
#endif /* BACKENDS_PLUGINS_PSP_PSP_PROVIDER_H */
#endif // defined(DYNAMIC_MODULES) && defined(__PSP__)

View file

@ -23,6 +23,8 @@
*
*/
#if defined(DYNAMIC_MODULES) && defined(MIPS_TARGET)
#ifndef SHORTS_SEGMENT_MANAGER_H
#define SHORTS_SEGMENT_MANAGER_H
@ -87,3 +89,5 @@ private:
};
#endif /* SHORTS_SEGMENT_MANAGER_H */
#endif /* defined(DYNAMIC_MODULES) && defined(MIPS_TARGET) */