Piotr Caban : windowscodecs: Include png.h only if SONAME_LIBPNG is defined.

Alexandre Julliard julliard at winehq.org
Thu Nov 7 16:16:05 CST 2019


Module: wine
Branch: master
Commit: 88d30985ddd534e8bafed531e619846bc8d10839
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=88d30985ddd534e8bafed531e619846bc8d10839

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Thu Nov  7 22:02:43 2019 +0100

windowscodecs: Include png.h only if SONAME_LIBPNG is defined.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 c0e272e86f..a79df632ef 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -22,7 +22,7 @@
 
 #include <stdarg.h>
 
-#ifdef HAVE_PNG_H
+#ifdef SONAME_LIBPNG
 #include <png.h>
 #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)
 {




More information about the wine-cvs mailing list