From: caro Date: Fri, 7 Jan 2011 06:48:33 +0000 (+0000) Subject: use configure-time headers checks instead of compiler ones X-Git-Tag: 2.0_alpha~240^2~1304 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34136866ece1c4f3c5ddecabe13eed6f5da80344;p=framework%2Fuifw%2Fevas.git use configure-time headers checks instead of compiler ones git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@55970 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_async_events.c b/src/lib/canvas/evas_async_events.c index a88620d..148e3d4 100644 --- a/src/lib/canvas/evas_async_events.c +++ b/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/src/lib/file/evas_path.c b/src/lib/file/evas_path.c index 3b1238a..0ab2bd2 100644 --- a/src/lib/file/evas_path.c +++ b/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/src/lib/include/evas_common.h b/src/lib/include/evas_common.h index 9ca90c3..1c71a32 100644 --- a/src/lib/include/evas_common.h +++ b/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