[xslt] small fix needed for win32
- From: "Vakoc, Mark" <Mark_Vakoc jdedwards com>
- To: "'xml gnome org'" <xml gnome org>,"'xslt gnome org'" <xslt gnome org>
- Subject: [xslt] small fix needed for win32
- Date: Mon, 11 Mar 2002 10:16:25 -0700
The utitlites in libxml2 (xmllint, test*) and libxslt (xsltproc) won't build
on win32 straight out of the box due to linking errors of unresolved items.
In libxml.h, which is included by the libxml utilities contains the line
#define IN_LIBXML
This should only be defined when building libxml2, not the utilites that
link against it.
This messes up the definition of LIBXML_DLL_IMPORT, defined as
#ifndef LIBXML_DLL_IMPORT
#if defined(_MSC_VER) && !defined(IN_LIBXML) && !defined(LIBXML_STATIC)
#define LIBXML_DLL_IMPORT __declspec(dllimport)
#else
#define LIBXML_DLL_IMPORT
#endif
#endif
The second definition (blank) is used instead of the first.
Removing the #define IN_LIBXML works on win32 because it is defined in the
libxml2 project as a preprocessor definition when building libxml2 itself.
Not sure if that would mess up the other platforms builds
The same applies to libxslt with IN_LIBXSLT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]