summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/shlibtest.cpp
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2009-06-26 22:21:24 +0000
committerStephen D. Huston <shuston@apache.org>2009-06-26 22:21:24 +0000
commit57fd0d6c7613851eb1f2ed3ed0db986683e7deb7 (patch)
tree9dfff03f3a72808587c5f12ae5a4f1e5aaf3b4f4 /qpid/cpp/src/tests/shlibtest.cpp
parent653408785ddf0011e87d5c44d7996e8aeb49eb2a (diff)
downloadqpid-python-57fd0d6c7613851eb1f2ed3ed0db986683e7deb7.tar.gz
Export callMe on Windows; fixes QPID-1958
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@788889 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/shlibtest.cpp')
-rw-r--r--qpid/cpp/src/tests/shlibtest.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/shlibtest.cpp b/qpid/cpp/src/tests/shlibtest.cpp
index 80320ea7be..e485cc9397 100644
--- a/qpid/cpp/src/tests/shlibtest.cpp
+++ b/qpid/cpp/src/tests/shlibtest.cpp
@@ -19,7 +19,11 @@
*/
int* loaderData = 0;
-extern "C" void callMe(int *i) { loaderData=i; }
+extern "C"
+#ifdef WIN32
+__declspec(dllexport)
+#endif
+void callMe(int *i) { loaderData=i; }
struct OnUnload { ~OnUnload() { *loaderData=42; } };
OnUnload unloader; // For destructor.