From fe85acc06d34415e58146b2f11b4c2bfbc79e4e0 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Fri, 7 Jan 2011 06:48:33 +0000 Subject: [PATCH] use configure-time headers checks instead of compiler ones SVN revision: 55970 --- legacy/evas/src/lib/canvas/evas_async_events.c | 4 +++- legacy/evas/src/lib/file/evas_path.c | 6 +++++- legacy/evas/src/lib/include/evas_common.h | 8 ++++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_async_events.c b/legacy/evas/src/lib/canvas/evas_async_events.c index a88620d467..148e3d4ac6 100644 --- a/legacy/evas/src/lib/canvas/evas_async_events.c +++ b/legacy/evas/src/lib/canvas/evas_async_events.c @@ -3,9 +3,11 @@ #ifdef BUILD_ASYNC_EVENTS -#ifndef _MSC_VER + +#ifdef HAVE_UNISTD_H # include #endif + #include #include diff --git a/legacy/evas/src/lib/file/evas_path.c b/legacy/evas/src/lib/file/evas_path.c index 3b1238aea9..0ab2bd2949 100644 --- a/legacy/evas/src/lib/file/evas_path.c +++ b/legacy/evas/src/lib/file/evas_path.c @@ -14,8 +14,12 @@ /* get the casefold feature! */ #include #include -#ifndef _MSC_VER + +#ifdef HAVE_UNISTD_H # include +#endif + +#ifndef HAVE_SYS_PARAM_H # include #endif diff --git a/legacy/evas/src/lib/include/evas_common.h b/legacy/evas/src/lib/include/evas_common.h index 9ca90c3ec5..1c71a3220a 100644 --- a/legacy/evas/src/lib/include/evas_common.h +++ b/legacy/evas/src/lib/include/evas_common.h @@ -241,8 +241,12 @@ void *alloca (size_t); #include #include #include -#ifndef _MSC_VER -# include + +#ifdef HAVE_STDINT_H +# include +#endif + +#ifdef HAVE_UNISTD_H # include #endif