aboutsummaryrefslogtreecommitdiff
path: root/backends/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'backends/plugins')
-rw-r--r--backends/plugins/dynamic-plugin.h4
-rw-r--r--backends/plugins/elf/shorts-segment-manager.cpp1
2 files changed, 2 insertions, 3 deletions
diff --git a/backends/plugins/dynamic-plugin.h b/backends/plugins/dynamic-plugin.h
index 0c6a797947..ec051c4ed7 100644
--- a/backends/plugins/dynamic-plugin.h
+++ b/backends/plugins/dynamic-plugin.h
@@ -28,6 +28,7 @@
#include "base/plugins.h"
+
class DynamicPlugin : public Plugin {
protected:
typedef int32 (*IntFunc)();
@@ -44,7 +45,6 @@ public:
unloadPlugin();
return false;
}
-
if (verFunc() != PLUGIN_VERSION) {
warning("Plugin uses a different API version (you have: '%d', needed is: '%d')", verFunc(), PLUGIN_VERSION);
unloadPlugin();
@@ -57,7 +57,6 @@ public:
unloadPlugin();
return false;
}
-
_type = (PluginType)typeFunc();
if (_type >= PLUGIN_TYPE_MAX) {
warning("Plugin type unknown: %d", _type);
@@ -71,7 +70,6 @@ public:
unloadPlugin();
return false;
}
-
if (typeVerFunc() != pluginTypeVersions[_type]) {
warning("Plugin uses a different type API version (you have: '%d', needed is: '%d')", typeVerFunc(), pluginTypeVersions[_type]);
unloadPlugin();
diff --git a/backends/plugins/elf/shorts-segment-manager.cpp b/backends/plugins/elf/shorts-segment-manager.cpp
index 17fe650c31..99a765287b 100644
--- a/backends/plugins/elf/shorts-segment-manager.cpp
+++ b/backends/plugins/elf/shorts-segment-manager.cpp
@@ -30,6 +30,7 @@
#include "backends/plugins/elf/shorts-segment-manager.h"
#include "common/debug.h"
+#include "common/textconsole.h"
extern char __plugin_hole_start; // Indicates start of hole in program file for shorts
extern char __plugin_hole_end; // Indicates end of hole in program file