aboutsummaryrefslogtreecommitdiffstats
path: root/include/libxml/xmlwin32version.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'include/libxml/xmlwin32version.h.in')
-rw-r--r--include/libxml/xmlwin32version.h.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/libxml/xmlwin32version.h.in b/include/libxml/xmlwin32version.h.in
index 8d740f58..dcbe5cbe 100644
--- a/include/libxml/xmlwin32version.h.in
+++ b/include/libxml/xmlwin32version.h.in
@@ -261,6 +261,18 @@ extern void xmlCheckVersion(int version);
#endif
#endif
+/*
+ * #pragma comment(lib, "kernel32.lib")
+ *
+ * pragma understood my MS compiler which enables a conditional link with
+ * kernel32.
+ */
+#ifdef _MSC_VER
+#if defined LIBXML_MODULES_ENABLED
+#pragma comment(lib, "kernel32.lib")
+#endif
+#endif
+
#ifdef __cplusplus
}
#endif /* __cplusplus */