Check for some header defines before redefining functions. Silences warnings.

This commit is contained in:
Alan Hourihane
2004-12-08 12:59:15 +00:00
parent 03dc05a605
commit 8635615501
2 changed files with 6 additions and 0 deletions

View 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 */