summaryrefslogtreecommitdiff
path: root/cpp/test/include/TestCommon.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/include/TestCommon.h')
-rw-r--r--cpp/test/include/TestCommon.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/test/include/TestCommon.h b/cpp/test/include/TestCommon.h
index cad96b6bc41..432f1341302 100644
--- a/cpp/test/include/TestCommon.h
+++ b/cpp/test/include/TestCommon.h
@@ -10,6 +10,12 @@
#ifndef TEST_COMMON_H
#define TEST_COMMON_H
+#include <IceUtil/Config.h>
+
+#if defined(_MSC_VER) && !defined(TEST_API_EXPORTS)
+# pragma comment(lib, ICE_LIBNAME("testcommon"))
+#endif
+
#include <Ice/CommunicatorF.h>
#include <Ice/ProxyF.h>