From 2c9161e532490d2623896ad4720fb5e7bb6480bb Mon Sep 17 00:00:00 2001 From: Sven Panne Date: Mon, 3 Jan 2005 10:35:36 +0000 Subject: [PATCH] Improved / handling as suggested by the autoconf docs. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@549 7f0cb862-5218-0410-a997-914c9d46530a --- src/freeglut_internal.h | 21 ++++++++++++--------- src/freeglut_joystick.c | 1 - src/freeglut_main.c | 2 -- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index effb2e0..17509ad 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -74,17 +74,20 @@ #include #include #include -#if TARGET_HOST_UNIX_X11 -#include -# if TIME_WITH_SYS_TIME +#if HAVE_SYS_TYPES_H +# include +#endif +#if HAVE_UNISTD_H +# include +#endif +#if TIME_WITH_SYS_TIME +# include +# include +#else +# if HAVE_SYS_TIME_H # include -# include # else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif +# include # endif #endif diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index ec599f3..fb77bb4 100644 --- a/src/freeglut_joystick.c +++ b/src/freeglut_joystick.c @@ -89,7 +89,6 @@ # define JS_RETURN (sizeof(struct JS_DATA_TYPE)) # endif -# include # include # include diff --git a/src/freeglut_main.c b/src/freeglut_main.c index a62ffc0..7c214dd 100644 --- a/src/freeglut_main.c +++ b/src/freeglut_main.c @@ -30,8 +30,6 @@ #include #if TARGET_HOST_UNIX_X11 -#include -#include #include #include #elif TARGET_HOST_WIN32 -- 1.7.10.4