Port Mesa to build on a P64 platform (e.g., Win64). P64 platforms

use 64-bit pointers and 32-bit longs.  So, operations like casting pointers
to unsigned long and back to pointer won't work.  glheader.h now
includes files to define uintptr_t, which should instead be used for
this sort of operation.  It is an integer type that is the same size
as a pointer.
This commit is contained in:
Karl Schultz
2005-05-05 21:08:07 +00:00
parent 203dcb733d
commit 6258b76c49
15 changed files with 42 additions and 35 deletions

View File

@@ -373,7 +373,7 @@ Peek_Token(struct parse_state *parseState, GLubyte *token)
parseState->pos += (-i);
return GL_FALSE;
}
len = _mesa_strlen((const char *) token);
len = (GLint)_mesa_strlen((const char *) token);
parseState->pos += (i - len);
return GL_TRUE;
}