Mercurial > pidgin
diff src/list.c @ 3717:988485669631
[gaim-migrate @ 3850]
Warning fixes and WIN32 ifdef removals
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Wed, 16 Oct 2002 19:57:03 +0000 |
parents | 9682c0e022c6 |
children | a614423c648f |
line wrap: on
line diff
--- a/src/list.c Wed Oct 16 19:44:19 2002 +0000 +++ b/src/list.c Wed Oct 16 19:57:03 2002 +0000 @@ -29,11 +29,14 @@ #include <unistd.h> #else #include <direct.h> -#include <io.h> #endif #include "gaim.h" #include "prpl.h" +#ifdef _WIN32 +#include "win32dep.h" +#endif + #define PATHSIZE 1024 void remove_buddy(struct gaim_connection *gc, struct group *rem_g, struct buddy *rem_b) @@ -790,11 +793,7 @@ strcpy(buf, file); dir = fopen(buf, "r"); if (!dir) -#ifndef _WIN32 mkdir(buf, S_IRUSR | S_IWUSR | S_IXUSR); -#else - _mkdir(buf); -#endif else fclose(dir); @@ -806,11 +805,7 @@ toc_build_config(g, buf, 8192 - 1, TRUE); fprintf(f, "%s\n", buf); fclose(f); -#ifdef _WIN32 - _chmod(buf, _S_IWRITE); -#else chmod(path, S_IRUSR | S_IWUSR); -#endif } else { debug_printf("unable to write %s\n", path); }