Module: wine Branch: master Commit: 49d69e440fcaa8715a2ef56cd480de2e610c8215 URL: http://source.winehq.org/git/wine.git/?a=commit;h=49d69e440fcaa8715a2ef56cd4...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Sun Mar 13 14:10:24 2011 +0300
msxml3: Silence compile time warnings for dynamically loaded libxslt.
---
dlls/msxml3/main.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/msxml3/main.c b/dlls/msxml3/main.c index 741858b..6cbdd99 100644 --- a/dlls/msxml3/main.c +++ b/dlls/msxml3/main.c @@ -193,7 +193,9 @@ static void init_libxslt(void) if (!libxslt_handle) return;
-#define LOAD_FUNCPTR(f, needed) if ((p##f = wine_dlsym(libxslt_handle, #f, NULL, 0)) == NULL && needed) { WARN("Can't find symbol %s\n", #f); goto sym_not_found; } +#define LOAD_FUNCPTR(f, needed) \ + if ((p##f = wine_dlsym(libxslt_handle, #f, NULL, 0)) == NULL) \ + if (needed) { WARN("Can't find symbol %s\n", #f); goto sym_not_found; } LOAD_FUNCPTR(xsltInit, 0); LOAD_FUNCPTR(xsltApplyStylesheet, 1); LOAD_FUNCPTR(xsltCleanupGlobals, 1);