minor fix for newest glxext.h header
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 13 Aug 2004 21:04:04 +0000 (21:04 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 13 Aug 2004 21:04:04 +0000 (21:04 +0000)
progs/xdemos/glxswapcontrol.c

index 6a9a852e6887579883c4d19752effbb42ef0ff01..98b3d1b58f17e25da351b9cea875bd2c13b5bd7e 100644 (file)
@@ -576,7 +576,7 @@ event_loop(Display *dpy, Window win)
 static void
 show_refresh_rate( Display * dpy )
 {
-#ifdef GLX_OML_sync_control
+#if defined(GLX_OML_sync_control) && (__STDC_VERSION__ >= 199901L)
    PFNGLXGETMSCRATEOMLPROC  get_msc_rate;
    int32_t  n;
    int32_t  d;