[gimp/wip/nielsdg/meson-fix-test-build] app/test-xcf: Use g_close() instead of close()



commit 19ee1133e7b1ba3e92449c16c4ae3ff610ef20e1
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/tests/test-xcf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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]