summaryrefslogtreecommitdiff
path: root/cpp/include/IcePatch2/Config.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/IcePatch2/Config.h')
-rw-r--r--cpp/include/IcePatch2/Config.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/cpp/include/IcePatch2/Config.h b/cpp/include/IcePatch2/Config.h
index 0a5608eb122..12457f45e7a 100644
--- a/cpp/include/IcePatch2/Config.h
+++ b/cpp/include/IcePatch2/Config.h
@@ -10,14 +10,17 @@
#ifndef ICE_PATCH2_CONFIG_H
#define ICE_PATCH2_CONFIG_H
-#ifdef _MSC_VER
//
// Automatically link with IcePatch2[D].lib
//
-# if defined(ICE_STATIC_LIBS)
-# pragma comment(lib, "IcePatch2.lib")
-# elif !defined(ICE_PATCH2_API_EXPORTS)
-# if defined(_DEBUG)
+
+#if !defined(ICE_BUILDING_ICE_PATCH2) && defined(ICE_PATCH2_API_EXPORTS)
+# define ICE_BUILDING_ICE_PATCH2
+#endif
+
+#ifdef _MSC_VER
+# if !defined(ICE_BUILDING_ICE_PATCH2)
+# if defined(_DEBUG) && !defined(ICE_OS_WINRT)
# pragma comment(lib, "IcePatch2D.lib")
# else
# pragma comment(lib, "IcePatch2.lib")