eina: windows cleanup.

Patch by Vincent Torri.


SVN revision: 62246
This commit is contained in:
Cedric BAIL 2011-08-09 09:21:07 +00:00
parent 1dc2512897
commit 2b247bc166
1 changed files with 3 additions and 22 deletions

View File

@ -20,6 +20,8 @@
# include "config.h" # include "config.h"
#endif #endif
#ifndef _WIN32
#ifdef STDC_HEADERS #ifdef STDC_HEADERS
# include <stdlib.h> # include <stdlib.h>
# include <stddef.h> # include <stddef.h>
@ -28,23 +30,6 @@
# include <stdlib.h> # include <stdlib.h>
# endif # endif
#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 <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -56,13 +41,8 @@ void *alloca (size_t);
#include <signal.h> #include <signal.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif
#ifdef HAVE_EVIL
# include <Evil.h>
#endif #endif
#include "eina_config.h" #include "eina_config.h"
@ -73,6 +53,7 @@ void *alloca (size_t);
/*============================================================================* /*============================================================================*
* Local * * Local *
*============================================================================*/ *============================================================================*/
static Eina_Bool mmap_safe = EINA_FALSE; static Eina_Bool mmap_safe = EINA_FALSE;
#ifndef _WIN32 #ifndef _WIN32
static int _eina_mmap_log_dom = -1; static int _eina_mmap_log_dom = -1;