summaryrefslogtreecommitdiff
path: root/libxslt/xsltconfig.h.in
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-12-20 13:53:08 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-12-20 13:53:08 +0000
commit40b27fb86ec1304498081f8723828e960f508590 (patch)
treead92a572238e7adafe5b3d50d381a700de791d68 /libxslt/xsltconfig.h.in
parentc17e6895ef833a95542be24bef8c8b55fcdf77b2 (diff)
downloadlibxslt-40b27fb86ec1304498081f8723828e960f508590.tar.gz
applied albert portability patch applied Igor patch for Windows Daniel
* configure.in: applied albert portability patch * libxslt/libxslt.h libxslt/xslt.h libxslt/xsltconfig.h.in libxslt/xsltutils.c libxslt/xsltwin32config.h.in win32/dsp/libxslt.def: applied Igor patch for Windows Daniel
Diffstat (limited to 'libxslt/xsltconfig.h.in')
-rw-r--r--libxslt/xsltconfig.h.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/libxslt/xsltconfig.h.in b/libxslt/xsltconfig.h.in
index 3ac02b58..a9e65643 100644
--- a/libxslt/xsltconfig.h.in
+++ b/libxslt/xsltconfig.h.in
@@ -97,8 +97,12 @@ extern "C" {
*
* This macro is used to declare PUBLIC variables for MSC on Windows
*/
-#if !defined(WIN32) || defined(__CYGWIN__)
-#define LIBXSLT_PUBLIC
+#if !defined LIBXSLT_PUBLIC
+#if defined _MSC_VER && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC
+#define LIBXSLT_PUBLIC __declspec(dllimport)
+#else
+#define LIBXSLT_PUBLIC
+#endif
#endif
#ifdef __cplusplus