diff --git a/xml/gl.xml b/xml/gl.xml
index 9b273423..0bd1a31a 100644
--- a/xml/gl.xml
+++ b/xml/gl.xml
@@ -95,8 +95,8 @@ typedef unsigned int GLhandleARB;
typedef unsigned short GLhalfARB;
typedef unsigned short GLhalf;
typedef GLint GLfixed;
- typedef ptrdiff_t GLintptr;
- typedef ptrdiff_t GLsizeiptr;
+ typedef khronos_intptr_t GLintptr;
+ typedef khronos_ssize_t GLsizeiptr;
typedef int64_t GLint64;
typedef uint64_t GLuint64;
typedef ptrdiff_t GLintptrARB;