eina: windows cleanup.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 9 Aug 2011 09:21:07 +0000 (09:21 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 9 Aug 2011 09:21:07 +0000 (09:21 +0000)
Patch by Vincent Torri.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@62246 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_mmap.c

index fe2a120..c8806e4 100644 (file)
@@ -20,6 +20,8 @@
 # include "config.h"
 #endif
 
+#ifndef _WIN32
+
 #ifdef STDC_HEADERS
 # include <stdlib.h>
 # include <stddef.h>
 #  include <stdlib.h>
 # endif
 #endif
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#elif defined __GNUC__
-# define alloca __builtin_alloca
-#elif defined _AIX
-# define alloca __alloca
-#elif defined _MSC_VER
-# include <malloc.h>
-# define alloca _alloca
-#else
-# ifndef HAVE_ALLOCA
-#  ifdef  __cplusplus
-extern "C"
-#  endif
-void *alloca (size_t);
-# endif
-#endif
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -56,13 +41,8 @@ void *alloca (size_t);
 #include <signal.h>
 #include <errno.h>
 #include <fcntl.h>
-
-#ifdef HAVE_UNISTD_H
 # include <unistd.h>
-#endif
 
-#ifdef HAVE_EVIL
-# include <Evil.h>
 #endif
 
 #include "eina_config.h"
@@ -73,6 +53,7 @@ void *alloca (size_t);
 /*============================================================================*
  *                                 Local                                      *
  *============================================================================*/
+
 static Eina_Bool mmap_safe = EINA_FALSE;
 #ifndef _WIN32
 static int _eina_mmap_log_dom = -1;