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