diff options
Diffstat (limited to 'GL/glx')
-rw-r--r-- | GL/glx/single2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/GL/glx/single2.c b/GL/glx/single2.c index 451f09ecc..4868d91a4 100644 --- a/GL/glx/single2.c +++ b/GL/glx/single2.c @@ -42,8 +42,8 @@ #include "g_disptab.h" #include "GL/glx_ansic.h" -#if defined(__CYGWIN__) || defined(__DARWIN__) /* should be XFree86Server */ -#define xf86atof atof +#if defined(XFree86LOADER) && !defined(__CYGWIN__) && !defined(__DARWIN__) +#define atof xf86atof #endif int __glXDisp_FeedbackBuffer(__GLXclientState *cl, GLbyte *pc) @@ -345,7 +345,7 @@ int DoGetString(__GLXclientState *cl, GLbyte *pc, GLboolean need_swap) string = buf; } else if ( name == GL_VERSION ) { - if ( xf86atof( string ) > xf86atof( GLServerVersion ) ) { + if ( atof( string ) > atof( GLServerVersion ) ) { buf = __glXMalloc( __glXStrlen( string ) + __glXStrlen( GLServerVersion ) + 4 ); |