#include <evas_common.h>
#include <evas_private.h>
+#include <evas_module.h>
+
+#ifdef _MSC_VER
+# ifdef open
+# undef open
+# endif
+# ifdef close
+# undef close
+# endif
+#endif
+
static Eina_Hash *evas_modules[4] = {
NULL,
evas_module_paths_init(void)
{
char *path, *path2;
+#ifndef _MSC_VER
const char *path3;
+#endif
/* 1. ~/.evas/modules/ */
path = eina_module_environment_path_get("HOME", "/.evas/modules");
evas_module_paths = _evas_module_append(evas_module_paths, path2);
/* 4. PREFIX/evas/modules/ */
+#ifndef _MSC_VER
path3 = PACKAGE_LIB_DIR "/evas/modules";
if ((path && (strcmp(path, path3) != 0)) ||
(path2 && (strcmp(path2, path3) != 0)) ||
if (path)
evas_module_paths = _evas_module_append(evas_module_paths, path);
}
+#endif
}
#define EVAS_EINA_STATIC_MODULE_DEFINE(Tn, Name) \
#endif
#include <limits.h>
-#include <unistd.h>
#include <stdlib.h>
-#include <sys/param.h>
#include <sys/types.h>
#include <sys/stat.h>
/* get the casefold feature! */
#include <fnmatch.h>
#include <dirent.h>
+#ifndef _MSC_VER
+# include <unistd.h>
+# include <sys/param.h>
+#endif
#ifdef HAVE_EVIL
# include <Evil.h>
evas_file_path_join(const char *path, const char *end)
{
char *res = NULL;
- int len;
+ size_t len;
if ((!path) && (!end)) return NULL;
if (!path) return strdup(end);