[grisbi-cvs] grisbi/src utils_files.c,1.42,1.43
Mickaƫl Remars
mykeul at users.sourceforge.net
Mon Aug 24 21:45:11 CEST 2009
Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29638
Modified Files:
utils_files.c
Log Message:
g_mkdir_with_parents()'s mode constants are not used on windows and not defined in msvc
Index: utils_files.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/utils_files.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- utils_files.c 9 Aug 2009 18:31:42 -0000 1.42
+++ utils_files.c 24 Aug 2009 19:45:09 -0000 1.43
@@ -367,8 +367,13 @@
*/
gboolean utils_files_create_XDG_dir (void)
{
- if ( g_mkdir_with_parents ( C_PATH_CONFIG, S_IRUSR | S_IWUSR | S_IXUSR ) == 0 &&
- g_mkdir_with_parents ( C_PATH_DATA_FILES, S_IRUSR | S_IWUSR | S_IXUSR ) == 0 )
+#ifdef _MSC_VER
+ int mode = 0;
+#else
+ int mode = S_IRUSR | S_IWUSR | S_IXUSR;
+#endif//_MSC_VER
+ if ( g_mkdir_with_parents ( C_PATH_CONFIG, mode ) == 0 &&
+ g_mkdir_with_parents ( C_PATH_DATA_FILES, mode ) == 0 )
return TRUE;
else
return FALSE;
More information about the cvs
mailing list