summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2011-01-07 06:28:17 +0000
committerVincent Torri <vincent.torri@gmail.com>2011-01-07 06:28:17 +0000
commit9a32c014c79354119e4a4e3ce9cb4f5a925ee74c (patch)
tree67e7c84c94732eec8714b608afba367504c33057
parent4ae06c2ccf9491279c36c04dbbff0fb7091bd1a6 (diff)
use configure-time headers checks instead of compiler ones
SVN revision: 55967
-rw-r--r--configure.ac1
-rw-r--r--src/lib/eina_hash.c7
-rw-r--r--src/lib/eina_log.c2
-rw-r--r--src/lib/eina_module.c4
4 files changed, 8 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 97fb9ed..6f71e0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -330,6 +330,7 @@ fi
330AC_HEADER_ASSERT 330AC_HEADER_ASSERT
331AC_HEADER_DIRENT 331AC_HEADER_DIRENT
332AC_HEADER_TIME 332AC_HEADER_TIME
333AC_CHECK_HEADERS([unistd.h libgen.h])
333EFL_CHECK_PATH_MAX 334EFL_CHECK_PATH_MAX
334 335
335### Checks for types 336### Checks for types
diff --git a/src/lib/eina_hash.c b/src/lib/eina_hash.c
index 18633e7..38c6a61 100644
--- a/src/lib/eina_hash.c
+++ b/src/lib/eina_hash.c
@@ -24,10 +24,13 @@
24#include <stdio.h> 24#include <stdio.h>
25#include <stdlib.h> 25#include <stdlib.h>
26#include <string.h> 26#include <string.h>
27
28#ifdef HAVE_STDINT_H
29# include <stdint.h>
30#endif
31
27#ifdef _MSC_VER 32#ifdef _MSC_VER
28# include <Evil.h> 33# include <Evil.h>
29#else
30# include <stdint.h>
31#endif 34#endif
32 35
33#include "eina_config.h" 36#include "eina_config.h"
diff --git a/src/lib/eina_log.c b/src/lib/eina_log.c
index 33c021d..4093b55 100644
--- a/src/lib/eina_log.c
+++ b/src/lib/eina_log.c
@@ -268,7 +268,7 @@
268#include <assert.h> 268#include <assert.h>
269#include <errno.h> 269#include <errno.h>
270 270
271#ifndef _MSC_VER 271#ifdef HAVE_UNISTD_H
272# include <unistd.h> 272# include <unistd.h>
273#endif 273#endif
274 274
diff --git a/src/lib/eina_module.c b/src/lib/eina_module.c
index 1c6d70f..203fe7a 100644
--- a/src/lib/eina_module.c
+++ b/src/lib/eina_module.c
@@ -42,10 +42,8 @@ void *alloca (size_t);
42#include <dirent.h> 42#include <dirent.h>
43#include <string.h> 43#include <string.h>
44 44
45#ifndef _MSC_VER 45#ifdef HAVE_LIBGEN_H
46# include <libgen.h> 46# include <libgen.h>
47#else
48# include <Evil.h>
49#endif 47#endif
50 48
51#include <dlfcn.h> 49#include <dlfcn.h>