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

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2019-11-07 22:02:43 +01:00 committed by Alexandre Julliard
parent cfa9334125
commit 88d30985dd
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{