summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-08-18 22:15:54 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-08-18 22:15:54 +0200
commit28f25233eeadad268e09d873429bd6f484d0bc86 (patch)
tree7a77f5bd51e3ecd1e03b4d8ade981a076c3d84e4 /src
parentdb5ad2e09a6b38e841463dbe7eb076492b62c948 (diff)
downloadmad-28f25233eeadad268e09d873429bd6f484d0bc86.tar
mad-28f25233eeadad268e09d873429bd6f484d0bc86.zip
Anpassungen fuer MinGW
Diffstat (limited to 'src')
-rw-r--r--src/Client/export.h4
-rw-r--r--src/Common/XmlPacket.h1
-rw-r--r--src/Common/export.h15
-rw-r--r--src/Core/Signals/Connection.h2
-rw-r--r--src/Core/Signals/GenericSignal.h2
-rw-r--r--src/Core/export.h4
-rw-r--r--src/Daemon/export.h4
-rw-r--r--src/Net/export.h15
-rw-r--r--src/Server/export.h4
-rw-r--r--src/modules/export.h2
10 files changed, 15 insertions, 38 deletions
diff --git a/src/Client/export.h b/src/Client/export.h
index c52e49d..44c120c 100644
--- a/src/Client/export.h
+++ b/src/Client/export.h
@@ -1,9 +1,9 @@
#ifndef MAD_CLIENT_EXPORT
# ifdef _WIN32
# ifdef MAD_CLIENT_EXPORTS
-# define MAD_CLIENT_EXPORT _declspec(dllexport)
+# define MAD_CLIENT_EXPORT __declspec(dllexport)
# else
-# define MAD_CLIENT_EXPORT _declspec(dllimport)
+# define MAD_CLIENT_EXPORT __declspec(dllimport)
# endif
# else
# define MAD_CLIENT_EXPORT
diff --git a/src/Common/XmlPacket.h b/src/Common/XmlPacket.h
index 9d63075..1902f82 100644
--- a/src/Common/XmlPacket.h
+++ b/src/Common/XmlPacket.h
@@ -305,7 +305,6 @@ class MAD_COMMON_EXPORT XmlPacket {
typedef value_type *pointer;
typedef long difference_type;
-
private:
IteratorType it;
diff --git a/src/Common/export.h b/src/Common/export.h
index 71207d3..532f3eb 100644
--- a/src/Common/export.h
+++ b/src/Common/export.h
@@ -1,22 +1,11 @@
#ifndef MAD_COMMON_EXPORT
# ifdef _WIN32
# ifdef MAD_COMMON_EXPORTS
-# define MAD_COMMON_EXPORT _declspec(dllexport)
+# define MAD_COMMON_EXPORT __declspec(dllexport)
# else
-# define MAD_COMMON_EXPORT _declspec(dllimport)
+# define MAD_COMMON_EXPORT __declspec(dllimport)
# endif
# else
# define MAD_COMMON_EXPORT
# endif
-
-# ifdef MAD_COMMON_EXPORTS
-# ifndef MAD_NET_EXPORTS
-# define MAD_NET_EXPORTS
-# endif
-# else
-# undef MAD_NET_EXPORTS
-# endif
-
-# include <Net/export.h>
-
#endif
diff --git a/src/Core/Signals/Connection.h b/src/Core/Signals/Connection.h
index fde959d..ea85518 100644
--- a/src/Core/Signals/Connection.h
+++ b/src/Core/Signals/Connection.h
@@ -28,7 +28,7 @@ namespace Signals {
class SignalBase;
-class MAD_CORE_EXPORT Connection {
+class Connection {
private:
friend class SignalBase;
diff --git a/src/Core/Signals/GenericSignal.h b/src/Core/Signals/GenericSignal.h
index 4f783e3..df57f96 100644
--- a/src/Core/Signals/GenericSignal.h
+++ b/src/Core/Signals/GenericSignal.h
@@ -32,7 +32,7 @@ namespace Core {
namespace Signals {
template <typename FunctionType>
-class MAD_CORE_EXPORT GenericSignal : protected SignalBase {
+class GenericSignal : protected SignalBase {
public:
typedef FunctionType slot_type;
diff --git a/src/Core/export.h b/src/Core/export.h
index 2ccd147..a508d4d 100644
--- a/src/Core/export.h
+++ b/src/Core/export.h
@@ -1,9 +1,9 @@
#ifndef MAD_CORE_EXPORT
# ifdef _WIN32
# ifdef MAD_CORE_EXPORTS
-# define MAD_CORE_EXPORT _declspec(dllexport)
+# define MAD_CORE_EXPORT __declspec(dllexport)
# else
-# define MAD_CORE_EXPORT _declspec(dllimport)
+# define MAD_CORE_EXPORT __declspec(dllimport)
# endif
# else
# define MAD_CORE_EXPORT
diff --git a/src/Daemon/export.h b/src/Daemon/export.h
index 1c5cf31..9017e3b 100644
--- a/src/Daemon/export.h
+++ b/src/Daemon/export.h
@@ -1,9 +1,9 @@
#ifndef MAD_DAEMON_EXPORT
# ifdef _WIN32
# ifdef MAD_DAEMON_EXPORTS
-# define MAD_DAEMON_EXPORT _declspec(dllexport)
+# define MAD_DAEMON_EXPORT __declspec(dllexport)
# else
-# define MAD_DAEMON_EXPORT _declspec(dllimport)
+# define MAD_DAEMON_EXPORT __declspec(dllimport)
# endif
# else
# define MAD_DAEMON_EXPORT
diff --git a/src/Net/export.h b/src/Net/export.h
index c0a5f6a..1f69aca 100644
--- a/src/Net/export.h
+++ b/src/Net/export.h
@@ -1,22 +1,11 @@
#ifndef MAD_NET_EXPORT
# ifdef _WIN32
# ifdef MAD_NET_EXPORTS
-# define MAD_NET_EXPORT _declspec(dllexport)
+# define MAD_NET_EXPORT __declspec(dllexport)
# else
-# define MAD_NET_EXPORT _declspec(dllimport)
+# define MAD_NET_EXPORT __declspec(dllimport)
# endif
# else
# define MAD_NET_EXPORT
# endif
-
-# ifdef MAD_NET_EXPORTS
-# ifndef MAD_CORE_EXPORTS
-# define MAD_CORE_EXPORTS
-# endif
-# else
-# undef MAD_CORE_EXPORTS
-# endif
-
-#include <Core/export.h>
-
#endif
diff --git a/src/Server/export.h b/src/Server/export.h
index 6ff9280..236da84 100644
--- a/src/Server/export.h
+++ b/src/Server/export.h
@@ -1,9 +1,9 @@
#ifndef MAD_SERVER_EXPORT
# ifdef _WIN32
# ifdef MAD_SERVER_EXPORTS
-# define MAD_SERVER_EXPORT _declspec(dllexport)
+# define MAD_SERVER_EXPORT __declspec(dllexport)
# else
-# define MAD_SERVER_EXPORT _declspec(dllimport)
+# define MAD_SERVER_EXPORT __declspec(dllimport)
# endif
# else
# define MAD_SERVER_EXPORT
diff --git a/src/modules/export.h b/src/modules/export.h
index 8222a36..d61ecc2 100644
--- a/src/modules/export.h
+++ b/src/modules/export.h
@@ -1,7 +1,7 @@
#ifndef MAD_MODULE_EXPORT
# ifdef _WIN32
# ifdef MAD_MODULE_EXPORTS
-# define MAD_MODULE_EXPORT _declspec(dllexport)
+# define MAD_MODULE_EXPORT __declspec(dllexport)
# else
# define MAD_MODULE_EXPORT
# endif