From e5b45be4902fd697a5af0bc69dcdb1b08609dc02 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Fri, 26 Jun 2009 22:21:24 +0000 Subject: Export callMe on Windows; fixes QPID-1958 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@788889 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/shlibtest.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cpp/src/tests/shlibtest.cpp') diff --git a/cpp/src/tests/shlibtest.cpp b/cpp/src/tests/shlibtest.cpp index 80320ea7be..e485cc9397 100644 --- a/cpp/src/tests/shlibtest.cpp +++ b/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. -- cgit v1.2.1