From b04bcd14ee329a12acc1b7895ee9ac4aa74344e3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 11 Dec 2000 15:41:47 +0000 Subject: [PATCH] minor changes to fix compile problems/warnings --- src/glut/glx/glut_vidresize.c | 10 +++++----- src/glut/glx/glut_win.c | 2 +- src/glut/glx/glutint.h | 3 +++ src/glut/glx/win32_winproc.c | 1 - 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/glut/glx/glut_vidresize.c b/src/glut/glx/glut_vidresize.c index 5b825734783..0146a29d8c5 100644 --- a/src/glut/glx/glut_vidresize.c +++ b/src/glut/glx/glut_vidresize.c @@ -7,10 +7,6 @@ #include -#if !defined(_WIN32) -#include -#endif - #ifdef __sgi #include #endif @@ -20,9 +16,11 @@ /* Grumble. The IRIX 6.3 and early IRIX 6.4 OpenGL headers support the video resize extension, but failed to define GLX_SGIX_video_resize. */ +#if 0 #ifdef GLX_SYNC_FRAME_SGIX #define GLX_SGIX_video_resize 1 #endif +#endif #if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_video_resize) static int canVideoResize = -1; @@ -43,7 +41,7 @@ static int dx = -1, dy = -1, dw = -1, dh = -1; static volatile int errorCaught; /* ARGSUSED */ -static +static int catchXSGIvcErrors(Display * dpy, XErrorEvent * event) { errorCaught = 1; @@ -94,6 +92,8 @@ glutVideoResizeGet(GLenum param) errorCaught = 0; +#if defined(GLX_GLXEXT_PROTOTYPES) +#endif glXQueryChannelDeltasSGIX(__glutDisplay, __glutScreen, videoResizeChannel, &dx, &dy, &dw, &dh); diff --git a/src/glut/glx/glut_win.c b/src/glut/glx/glut_win.c index 934144f633e..d03829c3a1a 100644 --- a/src/glut/glx/glut_win.c +++ b/src/glut/glx/glut_win.c @@ -398,7 +398,7 @@ __glutDetermineVisual( return vis; } -void GLUTCALLBACK +static void GLUTCALLBACK __glutDefaultDisplay(void) { /* XXX Remove the warning after GLUT 3.0. */ diff --git a/src/glut/glx/glutint.h b/src/glut/glx/glutint.h index f54ca0bd164..82e2465e81d 100644 --- a/src/glut/glx/glutint.h +++ b/src/glut/glx/glutint.h @@ -22,6 +22,7 @@ #else #include #include +#define GLX_GLXEXT_PROTOTYPES #include #endif @@ -671,6 +672,7 @@ extern GLUTwindow *__glutMenuWindow; extern GLUTmenu *__glutCurrentMenu; extern int __glutWindowListSize; extern void (*__glutFreeOverlayFunc) (GLUToverlay *); +extern void __glutFreeOverlay(GLUToverlay * overlay); extern XVisualInfo *__glutDetermineWindowVisual(Bool * treatAsSingle, Bool * visAlloced, void **fbc); @@ -703,6 +705,7 @@ extern void __glutPutOnWorkList(GLUTwindow * window, int work_mask); extern void __glutRegisterEventParser(GLUTeventParser * parser); extern void __glutPostRedisplay(GLUTwindow * window, int layerMask); +extern void handleTimeouts(void); /* private routines from glut_init.c */ #if !defined(_WIN32) diff --git a/src/glut/glx/win32_winproc.c b/src/glut/glx/win32_winproc.c index 945b7eb9ca9..a54bac75fa0 100644 --- a/src/glut/glx/win32_winproc.c +++ b/src/glut/glx/win32_winproc.c @@ -17,7 +17,6 @@ extern unsigned __glutMenuButton; extern GLUTidleCB __glutIdleFunc; extern GLUTtimer *__glutTimerList; -extern void handleTimeouts(void); extern GLUTmenuItem *__glutGetUniqueMenuItem(GLUTmenu * menu, int unique); static HMENU __glutHMenu; -- 2.30.2