summaryrefslogtreecommitdiffstats
path: root/src/Common/export.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-08-18 15:58:17 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-08-18 15:58:17 +0200
commitdb5ad2e09a6b38e841463dbe7eb076492b62c948 (patch)
tree5907f6416e35cbd25432a5f1f6dc9664d36aa73c /src/Common/export.h
parent5da7b0847bac2a5abec95b9ac1701b74baae8964 (diff)
downloadmad-db5ad2e09a6b38e841463dbe7eb076492b62c948.tar
mad-db5ad2e09a6b38e841463dbe7eb076492b62c948.zip
Mad funktioniert jetzt unter Windows
Diffstat (limited to 'src/Common/export.h')
-rw-r--r--src/Common/export.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Common/export.h b/src/Common/export.h
new file mode 100644
index 0000000..71207d3
--- /dev/null
+++ b/src/Common/export.h
@@ -0,0 +1,22 @@
+#ifndef MAD_COMMON_EXPORT
+# ifdef _WIN32
+# ifdef MAD_COMMON_EXPORTS
+# define MAD_COMMON_EXPORT _declspec(dllexport)
+# else
+# 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