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 =
"GLuint" => "%d",
"GLushort" => "%d",
"GLhalfNV" => "%d",
"GLintptrARB" => "%d",
"GLsizeiptrARB" => "%d",
"GLintptr" => "%d",
"GLsizeiptr" => "%d",
"GLintptrARB" => "%ld",
"GLsizeiptrARB" => "%ld",
"GLintptr" => "%ld",
"GLsizeiptr" => "%ld",
"GLhandleARB" => "%d",
"GLcharARB" => "%c",
"GLvoid" => "(void)",
......@@ -166,10 +166,10 @@ sub ConvertType($)
my ($type) = @_;
my %hash = ( "GLstring" => "const GLubyte *",
"GLintptrARB" => "ptrdiff_t",
"GLsizeiptrARB" => "ptrdiff_t",
"GLintptr" => "ptrdiff_t",
"GLsizeiptr" => "ptrdiff_t",
"GLintptrARB" => "INT_PTR",
"GLsizeiptrARB" => "INT_PTR",
"GLintptr" => "INT_PTR",
"GLsizeiptr" => "INT_PTR",
"GLhandleARB" => "unsigned int",
"GLcharARB" => "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