Make freeglut compile under Cygwin, which has an ancient GLX header

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@750 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2008-11-05 18:05:36 +00:00
parent a248ef8281
commit a74878aece

View File

@ -101,6 +101,14 @@
# ifdef HAVE_X11_EXTENSIONS_XF86VMODE_H
# include <X11/extensions/xf86vmode.h>
# endif
/* If GLX is too old, we will fail during runtime when multisampling
is requested, but at least freeglut compiles. */
# ifndef GLX_SAMPLE_BUFFERS
# define GLX_SAMPLE_BUFFERS 0x80A8
# endif
# ifndef GLX_SAMPLES
# define GLX_SAMPLES 0x80A9
# endif
#endif