msxml3: Avoid building code that isn't used without libxml.

This commit is contained in:
Alexandre Julliard 2012-03-16 13:02:24 +01:00
parent cd454fdc2e
commit 58fe32e1ea
1 changed files with 6 additions and 2 deletions

View File

@ -42,6 +42,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(msxml); WINE_DEFAULT_DEBUG_CHANNEL(msxml);
#ifdef HAVE_LIBXML2
typedef struct typedef struct
{ {
IPersistMoniker IPersistMoniker_iface; IPersistMoniker IPersistMoniker_iface;
@ -1422,7 +1424,6 @@ static IOleObjectVtbl XMLView_OleObjectVtbl = {
XMLView_OleObject_SetColorScheme XMLView_OleObject_SetColorScheme
}; };
#ifdef HAVE_LIBXML2
HRESULT XMLView_create(IUnknown *outer, void **ppObj) HRESULT XMLView_create(IUnknown *outer, void **ppObj)
{ {
XMLView *This; XMLView *This;
@ -1453,11 +1454,14 @@ HRESULT XMLView_create(IUnknown *outer, void **ppObj)
*ppObj = &This->IPersistMoniker_iface; *ppObj = &This->IPersistMoniker_iface;
return S_OK; return S_OK;
} }
#else #else
HRESULT XMLView_create(IUnknown *outer, void **ppObj) HRESULT XMLView_create(IUnknown *outer, void **ppObj)
{ {
MESSAGE("This program tried to use a XMLView object, but\n" MESSAGE("This program tried to use a XMLView object, but\n"
"libxml2 support was not present at compile time.\n"); "libxml2 support was not present at compile time.\n");
return E_NOTIMPL; return E_NOTIMPL;
} }
#endif
#endif /* HAVE_LIBXML2 */