diff options
author | Karl Schultz <[email protected]> | 2005-05-05 21:08:07 +0000 |
---|---|---|
committer | Karl Schultz <[email protected]> | 2005-05-05 21:08:07 +0000 |
commit | 6258b76c49f49a56a7c713914b798e80c6553b06 (patch) | |
tree | 2cc86a17fdda506fc9c86daba7ff3900d2d64996 /src/mesa/main/imports.h | |
parent | 203dcb733d36cc91107554b0d323ed8ccef6e105 (diff) |
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.
Diffstat (limited to 'src/mesa/main/imports.h')
-rw-r--r-- | src/mesa/main/imports.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 5158bcd8b25..2ae1116f412 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -100,7 +100,7 @@ extern "C" { * this macro. * Both pointers/offsets are expressed in bytes. */ -#define ADD_POINTERS(A, B) ( (GLubyte *) (A) + (unsigned long) (B) ) +#define ADD_POINTERS(A, B) ( (GLubyte *) (A) + (uintptr_t) (B) ) /**********************************************************************/ |