forked from enlightenment/efl
Better headers check.
Btw, should we include inttypes.h where we include stdint.h ? SVN revision: 57114
This commit is contained in:
parent
8c4bdb6164
commit
1c492ce551
|
@ -330,15 +330,22 @@ fi
|
||||||
AC_HEADER_ASSERT
|
AC_HEADER_ASSERT
|
||||||
AC_HEADER_DIRENT
|
AC_HEADER_DIRENT
|
||||||
AC_HEADER_TIME
|
AC_HEADER_TIME
|
||||||
|
AC_CHECK_HEADERS([unistd.h libgen.h])
|
||||||
EFL_CHECK_PATH_MAX
|
EFL_CHECK_PATH_MAX
|
||||||
|
|
||||||
### Checks for types
|
### Checks for types
|
||||||
AC_CHECK_HEADER([inttypes.h],
|
AC_CHECK_HEADER([inttypes.h],
|
||||||
[EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H"])
|
[
|
||||||
|
EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H"
|
||||||
|
AC_DEFINE(HAVE_INTTYPES_H, 1, [Define to 1 if you have the <inttypes.h> header file.])
|
||||||
|
])
|
||||||
AC_SUBST(EINA_CONFIGURE_HAVE_INTTYPES_H)
|
AC_SUBST(EINA_CONFIGURE_HAVE_INTTYPES_H)
|
||||||
|
|
||||||
AC_CHECK_HEADER([stdint.h],
|
AC_CHECK_HEADER([stdint.h],
|
||||||
[EINA_CONFIGURE_HAVE_STDINT_H="#define EINA_HAVE_STDINT_H"])
|
[
|
||||||
|
EINA_CONFIGURE_HAVE_STDINT_H="#define EINA_HAVE_STDINT_H"
|
||||||
|
AC_DEFINE(HAVE_STDINT_H, 1, [Define to 1 if you have the <stdint.h> header file.])
|
||||||
|
])
|
||||||
AC_SUBST(EINA_CONFIGURE_HAVE_STDINT_H)
|
AC_SUBST(EINA_CONFIGURE_HAVE_STDINT_H)
|
||||||
|
|
||||||
AC_CHECK_SIZEOF(wchar_t)
|
AC_CHECK_SIZEOF(wchar_t)
|
||||||
|
|
|
@ -24,10 +24,13 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_STDINT_H
|
||||||
|
# include <stdint.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
# include <Evil.h>
|
# include <Evil.h>
|
||||||
#else
|
|
||||||
# include <stdint.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "eina_config.h"
|
#include "eina_config.h"
|
||||||
|
|
|
@ -268,7 +268,7 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifdef HAVE_UNISTD_H
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -42,10 +42,8 @@ void *alloca (size_t);
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifdef HAVE_LIBGEN_H
|
||||||
# include <libgen.h>
|
# include <libgen.h>
|
||||||
#else
|
|
||||||
# include <Evil.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|
Loading…
Reference in New Issue