From: John F. Fay Date: Sun, 4 Sep 2011 03:35:29 +0000 (+0000) Subject: Fixing bug 3292122 from Nigel Stewart (thanks, Nigel) so that "freeglut" will build... X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=b0e5b06bca36a249ecba1716e73ef126075a1e04;p=freeglut Fixing bug 3292122 from Nigel Stewart (thanks, Nigel) so that "freeglut" will build on Ubuntu, per e-mail from Diederick Niehorster vintage 6/8/2011 at 3:07 AM. There was a problem with variables being declared only with an X extension but being used for all of X. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@927 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index 9bd0959..2a8d89a 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -381,11 +381,11 @@ struct tagSFG_Display int DisplayModeClock; /* The display mode's refresh rate */ int DisplayViewPortX; /* saved X location of the viewport */ int DisplayViewPortY; /* saved Y location of the viewport */ +#endif /* HAVE_X11_EXTENSIONS_XF86VMODE_H */ + int DisplayPointerX; /* saved X location of the pointer */ int DisplayPointerY; /* saved Y location of the pointer */ -#endif /* HAVE_X11_EXTENSIONS_XF86VMODE_H */ - #elif TARGET_HOST_MS_WINDOWS HINSTANCE Instance; /* The application's instance */ DEVMODE DisplayMode; /* Desktop's display settings */