Check for some header defines before redefining functions. Silences warnings.
authorAlan Hourihane <alanh@tungstengraphics.com>
Wed, 8 Dec 2004 12:59:15 +0000 (12:59 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Wed, 8 Dec 2004 12:59:15 +0000 (12:59 +0000)
include/GL/internal/dri_interface.h
src/mesa/drivers/dri/common/dri_util.h

index ced714d43e012427ad796d71df778a439c4d2eac..9c430469b2955bea4b0ff66687d7e3c349844899 100644 (file)
@@ -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
 /*@}*/
 
 
index cdb65763773dae75b57856437e98e1ee574cbd27..f85a2fb68e1dc335257342410abdb340999a256d 100644 (file)
@@ -558,8 +558,11 @@ extern float
 driCalculateSwapUsage( __DRIdrawablePrivate *dPriv,
                       int64_t last_swap_ust, int64_t current_ust );
 
+/* Test for the GLX header glx.h */
+#ifndef GLX
 extern void 
 (*glXGetProcAddress(const GLubyte *procname))( void );
+#endif
 
 #endif /* GLX_DIRECT_RENDERING */