avoid using near and far as variable names since they are reserved words
authorKarl Schultz <kschultz@freedesktop.org>
Mon, 26 Nov 2001 22:55:28 +0000 (22:55 +0000)
committerKarl Schultz <kschultz@freedesktop.org>
Mon, 26 Nov 2001 22:55:28 +0000 (22:55 +0000)
in the windows compiler.

src/mesa/glapi/glapitemp.h

index 76ec6cbf8f2ea368ddd0c1671154e4cd61d94372..f382b2afab933c1ee14476be3001fc30377e5686 100644 (file)
@@ -1487,9 +1487,9 @@ KEYWORD1 GLboolean KEYWORD2 NAME(IsList)(GLuint list)
    RETURN_DISPATCH(IsList, (list), (F, "glIsList(%d);", list));
 }
 
-KEYWORD1 void KEYWORD2 NAME(DepthRange)(GLclampd near, GLclampd far)
+KEYWORD1 void KEYWORD2 NAME(DepthRange)(GLclampd zNear, GLclampd zFar)
 {
-   DISPATCH(DepthRange, (near, far), (F, "glDepthRange(%f, %f);", near, far));
+   DISPATCH(DepthRange, (zNear, zFar), (F, "glDepthRange(%f, %f);", zNear, zFar));
 }
 
 KEYWORD1 void KEYWORD2 NAME(Frustum)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)