src/util.c

changeset 11361
b8c9532c9ffe
parent 11237
20884737f404
child 11407
3f89b9b59ba9
--- a/src/util.c	Sun Aug 28 22:46:01 2005 +0000
+++ b/src/util.c	Mon Aug 29 04:53:17 2005 +0000
@@ -1895,6 +1895,9 @@
 
 int gaim_build_dir (const char *path, int mode)
 {
+#if GLIB_CHECK_VERSION(2,8,0)
+	return g_mkdir_with_parents(path, mode);
+#else
 	char *dir, **components, delim[] = { G_DIR_SEPARATOR, '\0' };
 	int cur, len;
 
@@ -1941,6 +1944,7 @@
 	g_strfreev(components);
 	g_free(dir);
 	return 0;
+#endif
 }
 
 /*

mercurial