summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-10-15 17:55:29 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-10-15 17:55:29 +0300
commit14fe324cb1dbb37996c957df3c942c3cdf66d3cf (patch)
tree88c38b798a46e6fee2dee0c39260382c06f97a8d
parentbbd478c3b43fa756f1bfd54f1e989c832c2ca9d3 (diff)
modified: core/commonheaders.h
modified: core/main.cpp modified: plugins/example/main.cpp
-rw-r--r--core/commonheaders.h1
-rw-r--r--core/main.cpp1
-rw-r--r--plugins/example/main.cpp2
3 files changed, 3 insertions, 1 deletions
diff --git a/core/commonheaders.h b/core/commonheaders.h
index 6cb468d..7fff543 100644
--- a/core/commonheaders.h
+++ b/core/commonheaders.h
@@ -22,6 +22,7 @@
#include <boost/thread/mutex.hpp>
+#include "compatibility.h"
#include "../api/pluginapi.h"
#include "services.h"
#include "modules.h"
diff --git a/core/main.cpp b/core/main.cpp
index dc145a5..b0e381d 100644
--- a/core/main.cpp
+++ b/core/main.cpp
@@ -1,5 +1,6 @@
#include "commonheaders.h"
+#include "compatibility.h"
std::list<plugin*> plugins;
boost::mutex plugin_list_mutex;
diff --git a/plugins/example/main.cpp b/plugins/example/main.cpp
index 9df4c81..1eb8ac9 100644
--- a/plugins/example/main.cpp
+++ b/plugins/example/main.cpp
@@ -80,7 +80,7 @@ extern "C" int on_modules_loaded() //load main code from here, all services from
return 0;
}
-#ifdef _win32
+#ifdef _WIN32
extern "C" __declspec(dllexport) int unload()
#else
extern "C" int unload()