Commit fdd1bdf7 authored by Alexandre Julliard's avatar Alexandre Julliard

opengl32: Use INT_PTR instead of ptrdiff_t in generated code to avoid printf warnings.

parent c7254615
...@@ -119,10 +119,10 @@ my %debug_conv = ...@@ -119,10 +119,10 @@ my %debug_conv =
"GLuint" => "%d", "GLuint" => "%d",
"GLushort" => "%d", "GLushort" => "%d",
"GLhalfNV" => "%d", "GLhalfNV" => "%d",
"GLintptrARB" => "%d", "GLintptrARB" => "%ld",
"GLsizeiptrARB" => "%d", "GLsizeiptrARB" => "%ld",
"GLintptr" => "%d", "GLintptr" => "%ld",
"GLsizeiptr" => "%d", "GLsizeiptr" => "%ld",
"GLhandleARB" => "%d", "GLhandleARB" => "%d",
"GLcharARB" => "%c", "GLcharARB" => "%c",
"GLvoid" => "(void)", "GLvoid" => "(void)",
...@@ -166,10 +166,10 @@ sub ConvertType($) ...@@ -166,10 +166,10 @@ sub ConvertType($)
my ($type) = @_; my ($type) = @_;
my %hash = ( "GLstring" => "const GLubyte *", my %hash = ( "GLstring" => "const GLubyte *",
"GLintptrARB" => "ptrdiff_t", "GLintptrARB" => "INT_PTR",
"GLsizeiptrARB" => "ptrdiff_t", "GLsizeiptrARB" => "INT_PTR",
"GLintptr" => "ptrdiff_t", "GLintptr" => "INT_PTR",
"GLsizeiptr" => "ptrdiff_t", "GLsizeiptr" => "INT_PTR",
"GLhandleARB" => "unsigned int", "GLhandleARB" => "unsigned int",
"GLcharARB" => "char", "GLcharARB" => "char",
"GLchar" => "char", "GLchar" => "char",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment