From 88d30985ddd534e8bafed531e619846bc8d10839 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Thu, 7 Nov 2019 22:02:43 +0100 Subject: [PATCH] windowscodecs: Include png.h only if SONAME_LIBPNG is defined. Signed-off-by: Piotr Caban Signed-off-by: Alexandre Julliard --- dlls/windowscodecs/pngformat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c index c0e272e86f0..a79df632ef1 100644 --- a/dlls/windowscodecs/pngformat.c +++ b/dlls/windowscodecs/pngformat.c @@ -22,7 +22,7 @@ #include -#ifdef HAVE_PNG_H +#ifdef SONAME_LIBPNG #include #endif @@ -2183,7 +2183,7 @@ HRESULT PngEncoder_CreateInstance(REFIID iid, void** ppv) return ret; } -#else /* !HAVE_PNG_H */ +#else /* !SONAME_LIBPNG */ HRESULT PngDecoder_CreateInstance(REFIID iid, void** ppv) {