diff options
author | Stephen D. Huston <shuston@apache.org> | 2009-06-26 22:21:24 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2009-06-26 22:21:24 +0000 |
commit | e5b45be4902fd697a5af0bc69dcdb1b08609dc02 (patch) | |
tree | c762f57f88f9b13e47eac58ba7abb804721caa1a /cpp/src/tests | |
parent | 965a3fcd313339d08e6025ef37e3a17ccc929ebe (diff) | |
download | qpid-python-e5b45be4902fd697a5af0bc69dcdb1b08609dc02.tar.gz |
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
Diffstat (limited to 'cpp/src/tests')
-rw-r--r-- | cpp/src/tests/shlibtest.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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. |