Olivier F. R. Dierick : windowscodecs: Include system header png.h before Windows headers.

Alexandre Julliard julliard at winehq.org
Mon Oct 26 16:59:41 CDT 2020


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

Author: Olivier F. R. Dierick <o.dierick at 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 at piezo-forte.be>
Signed-off-by: Esme Povirk <esme at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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);




More information about the wine-cvs mailing list