Commit 88d30985 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

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

parent cfa93341
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <stdarg.h> #include <stdarg.h>
#ifdef HAVE_PNG_H #ifdef SONAME_LIBPNG
#include <png.h> #include <png.h>
#endif #endif
...@@ -2183,7 +2183,7 @@ HRESULT PngEncoder_CreateInstance(REFIID iid, void** ppv) ...@@ -2183,7 +2183,7 @@ HRESULT PngEncoder_CreateInstance(REFIID iid, void** ppv)
return ret; return ret;
} }
#else /* !HAVE_PNG_H */ #else /* !SONAME_LIBPNG */
HRESULT PngDecoder_CreateInstance(REFIID iid, void** ppv) HRESULT PngDecoder_CreateInstance(REFIID iid, void** ppv)
{ {
......
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