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.
This commit is contained in:
Kleis Auke Wolthuizen 2021-10-29 12:05:21 +02:00 committed by GitHub
parent 2d6d2e7c0d
commit a5bdcd77e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View File

@ -69,11 +69,12 @@
#include <fcntl.h>
#include <unistd.h>
#include <vips/vips.h>
#ifdef G_OS_WIN32
#include <io.h>
#endif /*G_OS_WIN32*/
#include <vips/vips.h>
#include <vips/debug.h>
#include <vips/internal.h>

View File

@ -56,11 +56,12 @@
#include <fcntl.h>
#include <unistd.h>
#include <vips/vips.h>
#ifdef G_OS_WIN32
#include <io.h>
#endif /*G_OS_WIN32*/
#include <vips/vips.h>
#include <vips/debug.h>
#include <vips/internal.h>

View File

@ -53,11 +53,12 @@
#endif /*HAVE_IO_H*/
#include <fcntl.h>
#include <vips/vips.h>
#ifdef G_OS_WIN32
#include <windows.h>
#endif /*G_OS_WIN32*/
#include <vips/vips.h>
#include <vips/debug.h>
#include <vips/internal.h>

View File

@ -94,11 +94,12 @@
#include <expat.h>
#include <errno.h>
#include <vips/vips.h>
#ifdef G_OS_WIN32
#include <windows.h>
#endif /*G_OS_WIN32*/
#include <vips/vips.h>
#include <vips/debug.h>
#include <vips/internal.h>