summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_file/ecore_file.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2010-04-05 08:26:48 +0000
committerVincent Torri <vincent.torri@gmail.com>2010-04-05 08:26:48 +0000
commit898768c96359bc337c41b9bdb1e637c8670c18d6 (patch)
tree02bbef90c638da6b9c465181243a608f3b84a108 /legacy/ecore/src/lib/ecore_file/ecore_file.c
parentf2b9c65adbeb8d9d8862134ea9f3067796d293b2 (diff)
various fixes for vc++. I'll add the Visual Studio projects later
SVN revision: 47758
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_file/ecore_file.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file.c b/legacy/ecore/src/lib/ecore_file/ecore_file.c
index 97544b8c80..385307a11b 100644
--- a/legacy/ecore/src/lib/ecore_file/ecore_file.c
+++ b/legacy/ecore/src/lib/ecore_file/ecore_file.c
@@ -10,9 +10,12 @@
10#include <string.h> 10#include <string.h>
11#include <sys/types.h> 11#include <sys/types.h>
12#include <sys/stat.h> 12#include <sys/stat.h>
13#include <unistd.h>
14#include <dirent.h> 13#include <dirent.h>
15#include <libgen.h> 14
15#ifndef _MSC_VER
16# include <unistd.h>
17# include <libgen.h>
18#endif
16 19
17#ifndef _FILE_OFFSET_BITS 20#ifndef _FILE_OFFSET_BITS
18# define _FILE_OFFSET_BITS 64 21# define _FILE_OFFSET_BITS 64
@@ -177,10 +180,10 @@ ecore_file_mkdir(const char *dir)
177EAPI int 180EAPI int
178ecore_file_mkdirs(const char **dirs) 181ecore_file_mkdirs(const char **dirs)
179{ 182{
180 if (!dirs) return -1;
181
182 int i = 0; 183 int i = 0;
183 184
185 if (!dirs) return -1;
186
184 for (; *dirs != NULL; dirs++) 187 for (; *dirs != NULL; dirs++)
185 if (ecore_file_mkdir(*dirs)) 188 if (ecore_file_mkdir(*dirs))
186 i++; 189 i++;
@@ -417,11 +420,10 @@ ecore_file_mkpath(const char *path)
417EAPI int 420EAPI int
418ecore_file_mkpaths(const char **paths) 421ecore_file_mkpaths(const char **paths)
419{ 422{
423 int i = 0;
420 424
421 if (!paths) return -1; 425 if (!paths) return -1;
422 426
423 int i = 0;
424
425 for (; *paths != NULL; paths++) 427 for (; *paths != NULL; paths++)
426 if (ecore_file_mkpath(*paths)) 428 if (ecore_file_mkpath(*paths))
427 i++; 429 i++;