summaryrefslogtreecommitdiff
path: root/cpp/include/Slice/Parser.h
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-10-08 01:07:13 +0200
committerJose <jose@zeroc.com>2014-10-08 01:07:13 +0200
commit3a98e0453a7d8367e478eff8c742b14835da7603 (patch)
treebfeb6335ccc9d0b0ef99118e49812e5f7459e305 /cpp/include/Slice/Parser.h
parentWindows thirdparty distribution updates (diff)
downloadice-3a98e0453a7d8367e478eff8c742b14835da7603.tar.bz2
ice-3a98e0453a7d8367e478eff8c742b14835da7603.tar.xz
ice-3a98e0453a7d8367e478eff8c742b14835da7603.zip
Several Windows build fixes:
ICE-3420 - Force link failure for debug/release mismatch? Update VS add-in to not add C++ libraries Fixed WinRT builds Fixed Python Windows builds
Diffstat (limited to 'cpp/include/Slice/Parser.h')
-rw-r--r--cpp/include/Slice/Parser.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/cpp/include/Slice/Parser.h b/cpp/include/Slice/Parser.h
index 0b70f236476..d4893173b99 100644
--- a/cpp/include/Slice/Parser.h
+++ b/cpp/include/Slice/Parser.h
@@ -20,6 +20,21 @@
#include <set>
#include <stdio.h>
+//
+// Automatically link Slice[D].lib with Visual C++
+//
+#ifdef _MSC_VER
+# if defined(ICE_STATIC_LIBS)
+# pragma comment(lib, "Slice.lib")
+# elif !defined(SLICE_API_EXPORTS)
+# if defined(_DEBUG)
+# pragma comment(lib, "SliceD.lib")
+# else
+# pragma comment(lib, "Slice.lib")
+# endif
+# endif
+#endif
+
#ifndef SLICE_API
# ifdef SLICE_API_EXPORTS
# define SLICE_API ICE_DECLSPEC_EXPORT