[gimp/wip/nielsdg/meson-fix-test-build] app/test-xcf: Use g_close() instead of close()
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/nielsdg/meson-fix-test-build] app/test-xcf: Use g_close() instead of close()
- Date: Sun, 10 May 2020 16:46:23 +0000 (UTC)
commit ed27cc7acd62234b3a309c0f12ea0c6952c44964
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sun May 10 18:21:06 2020 +0200
app/test-xcf: Use g_close() instead of close()
This fixes an "implicit declaration" warning in the win32/win64 meson
build, and is in general a bit easier to because of it having some
cross-platform hacks.
app/core/gimp-utils.c | 1 +
app/tests/test-xcf.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/app/core/gimp-utils.c b/app/core/gimp-utils.c
index 7580056c64..f1e0582895 100644
--- a/app/core/gimp-utils.c
+++ b/app/core/gimp-utils.c
@@ -47,6 +47,7 @@
#include <cairo.h>
#include <gegl.h>
+#include <glib/gstdio.h>
#include <gobject/gvaluecollector.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
diff --git a/app/tests/test-xcf.c b/app/tests/test-xcf.c
index cca6c4c0e9..c4df0a5ef3 100644
--- a/app/tests/test-xcf.c
+++ b/app/tests/test-xcf.c
@@ -313,7 +313,7 @@ gimp_write_and_read_file (Gimp *gimp,
/* Write to file */
file_handle = g_file_open_tmp ("gimp-test-XXXXXX.xcf", &filename, NULL);
g_assert (file_handle != -1);
- close (file_handle);
+ g_assert (g_close (file_handle, NULL));
file = g_file_new_for_path (filename);
g_free (filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]