Mercurial > pidgin
comparison src/util.c @ 11361:e4868370c433
[gaim-migrate @ 13585]
cleaning out my tree
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 29 Aug 2005 04:53:17 +0000 |
parents | 237d65590d2b |
children | f9c74bf11ae0 |
comparison
equal
deleted
inserted
replaced
11360:cf15c1cdcfbd | 11361:e4868370c433 |
---|---|
1893 } | 1893 } |
1894 } | 1894 } |
1895 | 1895 |
1896 int gaim_build_dir (const char *path, int mode) | 1896 int gaim_build_dir (const char *path, int mode) |
1897 { | 1897 { |
1898 #if GLIB_CHECK_VERSION(2,8,0) | |
1899 return g_mkdir_with_parents(path, mode); | |
1900 #else | |
1898 char *dir, **components, delim[] = { G_DIR_SEPARATOR, '\0' }; | 1901 char *dir, **components, delim[] = { G_DIR_SEPARATOR, '\0' }; |
1899 int cur, len; | 1902 int cur, len; |
1900 | 1903 |
1901 g_return_val_if_fail(path != NULL, -1); | 1904 g_return_val_if_fail(path != NULL, -1); |
1902 | 1905 |
1939 } | 1942 } |
1940 | 1943 |
1941 g_strfreev(components); | 1944 g_strfreev(components); |
1942 g_free(dir); | 1945 g_free(dir); |
1943 return 0; | 1946 return 0; |
1947 #endif | |
1944 } | 1948 } |
1945 | 1949 |
1946 /* | 1950 /* |
1947 * This function is long and beautiful, like my--um, yeah. Anyway, | 1951 * This function is long and beautiful, like my--um, yeah. Anyway, |
1948 * it includes lots of error checking so as we don't overwrite | 1952 * it includes lots of error checking so as we don't overwrite |