aboutsummaryrefslogtreecommitdiffstats
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
parentdefine strcasecmp() as stricmp() for vc++, remove (diff)
downloadefl-898768c96359bc337c41b9bdb1e637c8670c18d6.tar.gz
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 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <unistd.h>
#include <dirent.h>
-#include <libgen.h>
+
+#ifndef _MSC_VER
+# include <unistd.h>
+# include <libgen.h>
+#endif
#ifndef _FILE_OFFSET_BITS
# define _FILE_OFFSET_BITS 64
@@ -177,10 +180,10 @@ ecore_file_mkdir(const char *dir)
EAPI int
ecore_file_mkdirs(const char **dirs)
{
- if (!dirs) return -1;
-
int i = 0;
+ if (!dirs) return -1;
+
for (; *dirs != NULL; dirs++)
if (ecore_file_mkdir(*dirs))
i++;
@@ -417,11 +420,10 @@ ecore_file_mkpath(const char *path)
EAPI int
ecore_file_mkpaths(const char **paths)
{
+ int i = 0;
if (!paths) return -1;
- int i = 0;
-
for (; *paths != NULL; paths++)
if (ecore_file_mkpath(*paths))
i++;