X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_internal.h;h=40045906e097303d54bbc0f1a865cffa2b04aacd;hb=c969a6321bc21d80fd9b993a6355e84f1bc880b8;hp=af9fb2d782b34131f1ed6c3709b4a58cfc812973;hpb=d296a46a2dccdd99048541e1f8ca0ef010ac8545;p=freeglut diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index af9fb2d..4004590 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -28,6 +28,10 @@ #ifndef FREEGLUT_INTERNAL_H #define FREEGLUT_INTERNAL_H +#if HAVE_CONFIG_H +# include "config.h" +#endif + /* XXX Update these for each release! */ #define VERSION_MAJOR 2 #define VERSION_MINOR 2 @@ -69,10 +73,21 @@ #include #include #include -#include -#if TARGET_HOST_UNIX_X11 -#include -#include +#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 +# else +# include +# endif #endif /* The system-dependant include files should go here: */ @@ -366,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: @@ -777,8 +792,8 @@ SFG_Menu* fgMenuByID( int menuID ); * of the menu user interface handling code... */ void fgActivateMenu( SFG_Window* window, int button ); -void fgExecuteMenuCallback( SFG_Menu* menu ); -GLboolean fgCheckActiveMenu ( SFG_Window *window, SFG_Menu *menu ); +GLboolean fgCheckActiveMenu ( SFG_Window *window, int button, GLboolean pressed, + int mouse_x, int mouse_y ); void fgDeactivateMenu( SFG_Window *window ); void fgDeactivateSubMenu( SFG_MenuEntry *menuEntry );