From a5bdcd77e070d6b5a0bfe6480eb9c8716d3a6d34 Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Fri, 29 Oct 2021 12:05:21 +0200 Subject: [PATCH] Include vips.h before checking for G_OS_WIN32 (#2502) Since this definition originates from GLib, it is necessary to include vips/vips.h prior to using it. --- libvips/iofuncs/source.c | 3 ++- libvips/iofuncs/target.c | 3 ++- libvips/iofuncs/util.c | 3 ++- libvips/iofuncs/vips.c | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/libvips/iofuncs/source.c b/libvips/iofuncs/source.c index 9747b508..7520d9ef 100644 --- a/libvips/iofuncs/source.c +++ b/libvips/iofuncs/source.c @@ -69,11 +69,12 @@ #include #include +#include + #ifdef G_OS_WIN32 #include #endif /*G_OS_WIN32*/ -#include #include #include diff --git a/libvips/iofuncs/target.c b/libvips/iofuncs/target.c index d61abda9..da7b4951 100644 --- a/libvips/iofuncs/target.c +++ b/libvips/iofuncs/target.c @@ -56,11 +56,12 @@ #include #include +#include + #ifdef G_OS_WIN32 #include #endif /*G_OS_WIN32*/ -#include #include #include diff --git a/libvips/iofuncs/util.c b/libvips/iofuncs/util.c index 57cce044..d445ff4e 100644 --- a/libvips/iofuncs/util.c +++ b/libvips/iofuncs/util.c @@ -53,11 +53,12 @@ #endif /*HAVE_IO_H*/ #include +#include + #ifdef G_OS_WIN32 #include #endif /*G_OS_WIN32*/ -#include #include #include diff --git a/libvips/iofuncs/vips.c b/libvips/iofuncs/vips.c index 59d5a0d7..194b6efa 100644 --- a/libvips/iofuncs/vips.c +++ b/libvips/iofuncs/vips.c @@ -94,11 +94,12 @@ #include #include +#include + #ifdef G_OS_WIN32 #include #endif /*G_OS_WIN32*/ -#include #include #include