diff options
Diffstat (limited to 'cpp/src/tests/shlibtest.cpp')
| -rw-r--r-- | cpp/src/tests/shlibtest.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cpp/src/tests/shlibtest.cpp b/cpp/src/tests/shlibtest.cpp index 80320ea7be..5655eb7e64 100644 --- a/cpp/src/tests/shlibtest.cpp +++ b/cpp/src/tests/shlibtest.cpp @@ -18,11 +18,17 @@ * */ +namespace qpid { +namespace tests { + 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. - - +}} // namespace qpid::tests |
