X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_internal.h;h=40045906e097303d54bbc0f1a865cffa2b04aacd;hb=c969a6321bc21d80fd9b993a6355e84f1bc880b8;hp=effb2e0847260295d830aee9523d1f0609ea3862;hpb=10c6a55939634438c5a2624fb1bb9ea86a520285;p=freeglut diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index effb2e0..4004590 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -28,7 +28,7 @@ #ifndef FREEGLUT_INTERNAL_H #define FREEGLUT_INTERNAL_H -#ifdef HAVE_CONFIG_H +#if HAVE_CONFIG_H # include "config.h" #endif @@ -73,18 +73,20 @@ #include #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 @@ -379,7 +381,7 @@ do \ { \ if( FETCH_WCB( window, cbname ) != func ) \ (((window).CallBacks[CB_ ## cbname]) = (void *) func); \ -} while( 0 ) \ +} while( 0 ) /* * FETCH_WCB() is used as: