[glade/glade-3-36.msvc: 11/18] gladeui/glade-app.c: Fix build on Visual Studio
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/glade-3-36.msvc: 11/18] gladeui/glade-app.c: Fix build on Visual Studio
- Date: Mon, 8 Jun 2020 10:11:02 +0000 (UTC)
commit ce65b01bd69e6a16ab3e596cc1b9f6f3da3c0f3d
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Jun 3 19:09:41 2020 +0800
gladeui/glade-app.c: Fix build on Visual Studio
Fix the g_mkdir() call to use a mode that would make sense for Visual
Studio builds.
gladeui/glade-app.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/gladeui/glade-app.c b/gladeui/glade-app.c
index f60b9b8a..e131fe66 100644
--- a/gladeui/glade-app.c
+++ b/gladeui/glade-app.c
@@ -51,6 +51,12 @@
# include <gtkosxapplication.h>
#endif
+#ifdef G_OS_WIN32
+# define G_MKDIR_MODE S_IREAD | S_IWRITE
+#else
+# define G_MKDIR_MODE S_IRWXU
+#endif
+
#define GLADE_CONFIG_FILENAME "glade.conf"
enum
@@ -555,7 +561,7 @@ glade_app_config_save ()
error_shown = TRUE;
return -1;
}
- else if (g_mkdir (config_dir, S_IRWXU) != 0)
+ else if (g_mkdir (config_dir, G_MKDIR_MODE) != 0)
{
/* Doesnt exist; failed to create */
glade_util_ui_message
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]