Module: wine Branch: master Commit: 195d0b5308580a0584296c909c2d76b799035423 URL: https://source.winehq.org/git/wine.git/?a=commit;h=195d0b5308580a0584296c909...
Author: Olivier F. R. Dierick o.dierick@piezo-forte.be Date: Sat Oct 24 23:10:52 2020 +0200
windowscodecs: Include system header png.h before Windows headers.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50050 Signed-off-by: Olivier F. R. Dierick o.dierick@piezo-forte.be Signed-off-by: Esme Povirk esme@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/windowscodecs/libpng.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/libpng.c b/dlls/windowscodecs/libpng.c index 201f5c700d3..93ff6e056ec 100644 --- a/dlls/windowscodecs/libpng.c +++ b/dlls/windowscodecs/libpng.c @@ -25,6 +25,9 @@ #include "wine/port.h"
#include <stdarg.h> +#ifdef SONAME_LIBPNG +#include <png.h> +#endif
#define NONAMELESSUNION
@@ -43,8 +46,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(wincodecs);
#ifdef SONAME_LIBPNG
-#include <png.h> - static void *libpng_handle; #define MAKE_FUNCPTR(f) static typeof(f) * p##f MAKE_FUNCPTR(png_create_info_struct);