use configure-time headers checks instead of compiler ones
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 7 Jan 2011 06:48:33 +0000 (06:48 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 7 Jan 2011 06:48:33 +0000 (06:48 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@55970 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_async_events.c
src/lib/file/evas_path.c
src/lib/include/evas_common.h

index a88620d..148e3d4 100644 (file)
@@ -3,9 +3,11 @@
 
 #ifdef BUILD_ASYNC_EVENTS
 
-#ifndef _MSC_VER
+
+#ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
+
 #include <fcntl.h>
 #include <errno.h>
 
index 3b1238a..0ab2bd2 100644 (file)
 /* get the casefold feature! */
 #include <fnmatch.h>
 #include <dirent.h>
-#ifndef _MSC_VER
+
+#ifdef HAVE_UNISTD_H
 # include <unistd.h>
+#endif
+
+#ifndef HAVE_SYS_PARAM_H
 # include <sys/param.h>
 #endif
 
index 9ca90c3..1c71a32 100644 (file)
@@ -241,8 +241,12 @@ void *alloca (size_t);
 #include <sys/stat.h>
 #include <time.h>
 #include <ctype.h>
-#ifndef _MSC_VER
-# include <stdint.h>
+
+#ifdef HAVE_STDINT_H
+# include <unistd.h>
+#endif
+
+#ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif