summaryrefslogtreecommitdiff
path: root/libs/thread/src/win32/tss_dll.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/thread/src/win32/tss_dll.cpp')
-rw-r--r--libs/thread/src/win32/tss_dll.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/thread/src/win32/tss_dll.cpp b/libs/thread/src/win32/tss_dll.cpp
index 2dc019f4b..e0b73e0fc 100644
--- a/libs/thread/src/win32/tss_dll.cpp
+++ b/libs/thread/src/win32/tss_dll.cpp
@@ -73,5 +73,13 @@ namespace boost
}
}
+#else //defined(BOOST_HAS_WINTHREADS) && defined(BOOST_THREAD_BUILD_DLL)
+
+#ifdef _MSC_VER
+// Prevent LNK4221 warning with link=static
+namespace boost { namespace link_static_warning_inhibit {
+ extern __declspec(dllexport) void foo() { }
+} }
+#endif
#endif //defined(BOOST_HAS_WINTHREADS) && defined(BOOST_THREAD_BUILD_DLL)