app, libgimpbase, plug-ins, tools: Include missing IO headers if on Windows

Otherwise, gimp fails to build on MSVC
This commit is contained in:
Bruno Lopes 2025-11-25 12:17:47 -03:00
parent 052ea23691
commit 8748b8bb41
No known key found for this signature in database
8 changed files with 29 additions and 1 deletions

View file

@ -32,6 +32,9 @@
#include <gegl.h>
#include "libgimpbase/gimpbase.h"
#ifdef G_OS_WIN32
#include "libgimpbase/gimpwin32-io.h"
#endif
#include "core/core-types.h"

View file

@ -23,7 +23,7 @@
#include <unistd.h>
#endif
#ifdef G_OS_WIN32
#ifdef _WIN32
#define STRICT
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

View file

@ -23,6 +23,10 @@
#include "config.h"
#ifdef _WIN32
#include <io.h>
#endif
#include <fcntl.h>
#include <glib/gstdio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>

View file

@ -17,6 +17,10 @@
#include "config.h"
#ifdef _WIN32
#include <stdio.h>
#endif
#include <gegl.h>
#include <gtk/gtk.h>

View file

@ -36,6 +36,10 @@
#include <gio/gio.h>
#include <glib/gstdio.h>
#ifdef G_OS_WIN32
#include "libgimpbase/gimpwin32-io.h"
#endif
#include "gimpbasetypes.h"
#define __GIMP_ENV_C__

View file

@ -78,6 +78,9 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef _WIN32
#include <io.h>
#endif
#include <glib/gstdio.h>
#ifndef _O_BINARY

View file

@ -17,6 +17,11 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#if defined(_WIN32) && !defined(HAVE_UNISTD_H)
#include <io.h>
#define popen _popen
#define pclose _pclose
#endif
#include <glib/gstdio.h>
#ifndef _O_BINARY

View file

@ -37,6 +37,11 @@
#ifdef G_OS_WIN32
#include "libgimpbase/gimpwin32-io.h"
#ifndef HAVE_UNISTD_H
#include <io.h>
#define popen _popen
#define pclose _pclose
#endif
#endif