use configure-time headers checks instead of compiler ones

SVN revision: 55967
This commit is contained in:
Vincent Torri 2011-01-07 06:28:17 +00:00
parent 989a3f0693
commit 0745ad7878
4 changed files with 8 additions and 6 deletions

View File

@ -330,6 +330,7 @@ fi
AC_HEADER_ASSERT
AC_HEADER_DIRENT
AC_HEADER_TIME
AC_CHECK_HEADERS([unistd.h libgen.h])
EFL_CHECK_PATH_MAX
### Checks for types

View File

@ -24,10 +24,13 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef _MSC_VER
# include <Evil.h>
#else
# include <stdint.h>
#endif
#include "eina_config.h"

View File

@ -268,7 +268,7 @@
#include <assert.h>
#include <errno.h>
#ifndef _MSC_VER
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif

View File

@ -42,10 +42,8 @@ void *alloca (size_t);
#include <dirent.h>
#include <string.h>
#ifndef _MSC_VER
#ifdef HAVE_LIBGEN_H
# include <libgen.h>
#else
# include <Evil.h>
#endif
#include <dlfcn.h>