Commit 681d3751 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

msxml3: Fix compilation on systems that don't have xsltInit().

Reduce the scope of xsltInit(). Remove an include that was needed only for xsltInit().
parent a815677d
......@@ -49,7 +49,6 @@ HRESULT WINAPI DllCanUnloadNow(void)
void* libxslt_handle = NULL;
#ifdef SONAME_LIBXSLT
# define DECL_FUNCPTR(f) typeof(f) * p##f = NULL
DECL_FUNCPTR(xsltInit);
DECL_FUNCPTR(xsltApplyStylesheet);
DECL_FUNCPTR(xsltCleanupGlobals);
DECL_FUNCPTR(xsltFreeStylesheet);
......@@ -60,6 +59,8 @@ DECL_FUNCPTR(xsltParseStylesheetDoc);
static void init_libxslt(void)
{
#ifdef SONAME_LIBXSLT
void (*pxsltInit)(void); /* Missing in libxslt <= 1.1.14 */
libxslt_handle = wine_dlopen(SONAME_LIBXSLT, RTLD_NOW, NULL, 0);
if (!libxslt_handle)
return;
......
......@@ -102,10 +102,8 @@ void* libxslt_handle;
# endif
# include <libxslt/xsltutils.h>
# include <libxslt/xsltInternals.h>
# include <libxslt/xslt.h>
# define MAKE_FUNCPTR(f) extern typeof(f) * p##f
MAKE_FUNCPTR(xsltInit);
MAKE_FUNCPTR(xsltApplyStylesheet);
MAKE_FUNCPTR(xsltCleanupGlobals);
MAKE_FUNCPTR(xsltFreeStylesheet);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment