summaryrefslogtreecommitdiffstats
path: root/include/GL
diff options
context:
space:
mode:
authorAlan Hourihane <[email protected]>2004-12-08 12:59:15 +0000
committerAlan Hourihane <[email protected]>2004-12-08 12:59:15 +0000
commit86356155018fce96ba3367fd1a48a18cd6db3c40 (patch)
treefcf1f11b557f02e60a20edf2776e6a1e3c554051 /include/GL
parent03dc05a6051abe94590f21dd1451dc45ec0ac306 (diff)
Check for some header defines before redefining functions. Silences warnings.
Diffstat (limited to 'include/GL')
-rw-r--r--include/GL/internal/dri_interface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index ced714d43e0..9c430469b29 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -149,6 +149,8 @@ typedef GLboolean (* PFNGLXGETDRAWABLEINFOPROC) ( __DRInativeDisplay *dpy, int s
int * backX, int * backY,
int * numBackClipRects, drm_clip_rect_t ** pBackClipRects );
+/* Test for the xf86dri.h header file */
+#ifndef _XF86DRI_H_
extern GLboolean XF86DRIDestroyContext( __DRInativeDisplay *dpy, int screen,
__DRIid context_id );
@@ -157,6 +159,7 @@ extern GLboolean XF86DRICreateDrawable( __DRInativeDisplay *dpy, int screen,
extern GLboolean XF86DRIDestroyDrawable( __DRInativeDisplay *dpy, int screen,
__DRIid drawable);
+#endif
/*@}*/