Commit ce951c9c authored by Alexandre Julliard's avatar Alexandre Julliard

opengl32: Build without -DWINE_NO_LONG_TYPES.

parent e85f5aa6
MODULE = opengl32.dll MODULE = opengl32.dll
UNIXLIB = opengl32.so UNIXLIB = opengl32.so
EXTRADEFS = -DWINE_NO_LONG_TYPES -D_OPENGL32_ EXTRADEFS = -D_OPENGL32_
IMPORTLIB = opengl32 IMPORTLIB = opengl32
IMPORTS = user32 gdi32 advapi32 win32u IMPORTS = user32 gdi32 advapi32 win32u
DELAYIMPORTS = glu32 DELAYIMPORTS = glu32
......
...@@ -94,12 +94,12 @@ my %arg_types = ...@@ -94,12 +94,12 @@ my %arg_types =
"GLint" => [ "long", "%d" ], "GLint" => [ "long", "%d" ],
"GLint64" => [ "int64", "wine_dbgstr_longlong(%s)" ], "GLint64" => [ "int64", "wine_dbgstr_longlong(%s)" ],
"GLint64EXT" => [ "int64", "wine_dbgstr_longlong(%s)" ], "GLint64EXT" => [ "int64", "wine_dbgstr_longlong(%s)" ],
"GLintptr" => [ "long", "%ld" ], "GLintptr" => [ "long", "%Id" ],
"GLintptrARB" => [ "long", "%ld" ], "GLintptrARB" => [ "long", "%Id" ],
"GLshort" => [ "long", "%d" ], "GLshort" => [ "long", "%d" ],
"GLsizei" => [ "long", "%d" ], "GLsizei" => [ "long", "%d" ],
"GLsizeiptr" => [ "long", "%ld" ], "GLsizeiptr" => [ "long", "%Id" ],
"GLsizeiptrARB" => [ "long", "%ld" ], "GLsizeiptrARB" => [ "long", "%Id" ],
"GLstring" => [ "str", "wine_dbgstr_a(%s)" ], "GLstring" => [ "str", "wine_dbgstr_a(%s)" ],
"GLsync" => [ "ptr", "%p" ], "GLsync" => [ "ptr", "%p" ],
"GLubyte" => [ "long", "%d" ], "GLubyte" => [ "long", "%d" ],
...@@ -107,7 +107,7 @@ my %arg_types = ...@@ -107,7 +107,7 @@ my %arg_types =
"GLuint64" => [ "int64", "wine_dbgstr_longlong(%s)" ], "GLuint64" => [ "int64", "wine_dbgstr_longlong(%s)" ],
"GLuint64EXT" => [ "int64", "wine_dbgstr_longlong(%s)" ], "GLuint64EXT" => [ "int64", "wine_dbgstr_longlong(%s)" ],
"GLushort" => [ "long", "%d" ], "GLushort" => [ "long", "%d" ],
"GLvdpauSurfaceNV" => [ "long", "%ld" ], "GLvdpauSurfaceNV" => [ "long", "%Id" ],
"GLDEBUGPROC" => [ "ptr", "%p" ], "GLDEBUGPROC" => [ "ptr", "%p" ],
"GLDEBUGPROCARB" => [ "ptr", "%p" ], "GLDEBUGPROCARB" => [ "ptr", "%p" ],
"GLDEBUGPROCAMD" => [ "ptr", "%p" ], "GLDEBUGPROCAMD" => [ "ptr", "%p" ],
...@@ -120,7 +120,7 @@ my %arg_types = ...@@ -120,7 +120,7 @@ my %arg_types =
"LPGLYPHMETRICSFLOAT" => [ "ptr", "%p" ], "LPGLYPHMETRICSFLOAT" => [ "ptr", "%p" ],
"LPCSTR" => [ "str", "wine_dbgstr_a(%s)" ], "LPCSTR" => [ "str", "wine_dbgstr_a(%s)" ],
"UINT" => [ "long", "%u" ], "UINT" => [ "long", "%u" ],
"DWORD" => [ "long", "%u" ], "DWORD" => [ "long", "%lu" ],
"BOOL" => [ "long", "%u" ], "BOOL" => [ "long", "%u" ],
"FLOAT" => [ "float", "%f" ], "FLOAT" => [ "float", "%f" ],
); );
...@@ -316,7 +316,7 @@ sub generate_win_thunk($$) ...@@ -316,7 +316,7 @@ sub generate_win_thunk($$)
$ret .= " memcpy( args.$pname, $pname, sizeof(args.$pname) );\n" if $arg->textContent() =~ /\[/; $ret .= " memcpy( args.$pname, $pname, sizeof(args.$pname) );\n" if $arg->textContent() =~ /\[/;
} }
$ret .= " " . get_func_trace( $name, $func, 1 ) if $gen_traces; $ret .= " " . get_func_trace( $name, $func, 1 ) if $gen_traces;
$ret .= " if ((status = UNIX_CALL( $name, &args ))) WARN( \"$name returned %#x\\n\", status );\n"; $ret .= " if ((status = UNIX_CALL( $name, &args ))) WARN( \"$name returned %#lx\\n\", status );\n";
$ret .= " return args.ret;\n" unless is_void_func($func); $ret .= " return args.ret;\n" unless is_void_func($func);
$ret .= "}\n"; $ret .= "}\n";
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -272,12 +272,12 @@ static HKEY open_hkcu_key( const char *name ) ...@@ -272,12 +272,12 @@ static HKEY open_hkcu_key( const char *name )
sid = ((TOKEN_USER *)sid_data)->User.Sid; sid = ((TOKEN_USER *)sid_data)->User.Sid;
len = sprintf( buffer, "\\Registry\\User\\S-%u-%u", sid->Revision, len = sprintf( buffer, "\\Registry\\User\\S-%u-%u", sid->Revision,
MAKELONG( MAKEWORD( sid->IdentifierAuthority.Value[5], (int)MAKELONG( MAKEWORD( sid->IdentifierAuthority.Value[5],
sid->IdentifierAuthority.Value[4] ), sid->IdentifierAuthority.Value[4] ),
MAKEWORD( sid->IdentifierAuthority.Value[3], MAKEWORD( sid->IdentifierAuthority.Value[3],
sid->IdentifierAuthority.Value[2] ))); sid->IdentifierAuthority.Value[2] )));
for (i = 0; i < sid->SubAuthorityCount; i++) for (i = 0; i < sid->SubAuthorityCount; i++)
len += sprintf( buffer + len, "-%u", sid->SubAuthority[i] ); len += sprintf( buffer + len, "-%u", (int)sid->SubAuthority[i] );
ascii_to_unicode( bufferW, buffer, len ); ascii_to_unicode( bufferW, buffer, len );
hkcu = reg_open_key( NULL, bufferW, len * sizeof(WCHAR) ); hkcu = reg_open_key( NULL, bufferW, len * sizeof(WCHAR) );
......
...@@ -79,7 +79,7 @@ INT WINAPI wglChoosePixelFormat(HDC hdc, const PIXELFORMATDESCRIPTOR* ppfd) ...@@ -79,7 +79,7 @@ INT WINAPI wglChoosePixelFormat(HDC hdc, const PIXELFORMATDESCRIPTOR* ppfd)
int i, count, best_format; int i, count, best_format;
int bestDBuffer = -1, bestStereo = -1; int bestDBuffer = -1, bestStereo = -1;
TRACE_(wgl)( "%p %p: size %u version %u flags %u type %u color %u %u,%u,%u,%u " TRACE_(wgl)( "%p %p: size %u version %u flags %lu type %u color %u %u,%u,%u,%u "
"accum %u depth %u stencil %u aux %u\n", "accum %u depth %u stencil %u aux %u\n",
hdc, ppfd, ppfd->nSize, ppfd->nVersion, ppfd->dwFlags, ppfd->iPixelType, hdc, ppfd, ppfd->nSize, ppfd->nVersion, ppfd->dwFlags, ppfd->iPixelType,
ppfd->cColorBits, ppfd->cRedBits, ppfd->cGreenBits, ppfd->cBlueBits, ppfd->cAlphaBits, ppfd->cColorBits, ppfd->cRedBits, ppfd->cGreenBits, ppfd->cBlueBits, ppfd->cAlphaBits,
...@@ -252,7 +252,7 @@ INT WINAPI wglGetPixelFormat(HDC hdc) ...@@ -252,7 +252,7 @@ INT WINAPI wglGetPixelFormat(HDC hdc)
if ((status = UNIX_CALL( wglGetPixelFormat, &args ))) if ((status = UNIX_CALL( wglGetPixelFormat, &args )))
{ {
WARN( "wglGetPixelFormat returned %#x\n", status ); WARN( "wglGetPixelFormat returned %#lx\n", status );
SetLastError( ERROR_INVALID_PIXEL_FORMAT ); SetLastError( ERROR_INVALID_PIXEL_FORMAT );
} }
...@@ -267,7 +267,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH wglSwapBuffers( HDC hdc ) ...@@ -267,7 +267,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH wglSwapBuffers( HDC hdc )
struct wglSwapBuffers_params args = { .hdc = hdc, }; struct wglSwapBuffers_params args = { .hdc = hdc, };
NTSTATUS status; NTSTATUS status;
if ((status = UNIX_CALL( wglSwapBuffers, &args ))) WARN( "wglSwapBuffers returned %#x\n", status ); if ((status = UNIX_CALL( wglSwapBuffers, &args ))) WARN( "wglSwapBuffers returned %#lx\n", status );
else if (TRACE_ON(fps)) else if (TRACE_ON(fps))
{ {
static long prev_time, start_time; static long prev_time, start_time;
...@@ -339,7 +339,8 @@ PROC WINAPI wglGetProcAddress( LPCSTR name ) ...@@ -339,7 +339,8 @@ PROC WINAPI wglGetProcAddress( LPCSTR name )
NTSTATUS status; NTSTATUS status;
if (!name) return NULL; if (!name) return NULL;
if ((status = UNIX_CALL( wglGetProcAddress, &args ))) WARN( "wglGetProcAddress %s returned %#x\n", debugstr_a(name), status ); if ((status = UNIX_CALL( wglGetProcAddress, &args )))
WARN( "wglGetProcAddress %s returned %#lx\n", debugstr_a(name), status );
if (args.ret == (void *)-1) return NULL; if (args.ret == (void *)-1) return NULL;
proc = extension_procs[(UINT_PTR)args.ret]; proc = extension_procs[(UINT_PTR)args.ret];
...@@ -421,7 +422,7 @@ static BOOL wglUseFontBitmaps_common( HDC hdc, DWORD first, DWORD count, DWORD l ...@@ -421,7 +422,7 @@ static BOOL wglUseFontBitmaps_common( HDC hdc, DWORD first, DWORD count, DWORD l
else else
needed_size = GetGlyphOutlineA(hdc, glyph, GGO_BITMAP, &gm, 0, NULL, &identity); needed_size = GetGlyphOutlineA(hdc, glyph, GGO_BITMAP, &gm, 0, NULL, &identity);
TRACE("Glyph: %3d / List: %d size %d\n", glyph, listBase, needed_size); TRACE("Glyph: %3d / List: %ld size %d\n", glyph, listBase, needed_size);
if (needed_size == GDI_ERROR) { if (needed_size == GDI_ERROR) {
ret = FALSE; ret = FALSE;
break; break;
...@@ -449,7 +450,7 @@ static BOOL wglUseFontBitmaps_common( HDC hdc, DWORD first, DWORD count, DWORD l ...@@ -449,7 +450,7 @@ static BOOL wglUseFontBitmaps_common( HDC hdc, DWORD first, DWORD count, DWORD l
unsigned char *bitmap_ = bitmap; unsigned char *bitmap_ = bitmap;
TRACE(" - bbox: %d x %d\n", gm.gmBlackBoxX, gm.gmBlackBoxY); TRACE(" - bbox: %d x %d\n", gm.gmBlackBoxX, gm.gmBlackBoxY);
TRACE(" - origin: (%d, %d)\n", gm.gmptGlyphOrigin.x, gm.gmptGlyphOrigin.y); TRACE(" - origin: (%ld, %ld)\n", gm.gmptGlyphOrigin.x, gm.gmptGlyphOrigin.y);
TRACE(" - increment: %d - %d\n", gm.gmCellIncX, gm.gmCellIncY); TRACE(" - increment: %d - %d\n", gm.gmCellIncX, gm.gmCellIncY);
if (needed_size != 0) { if (needed_size != 0) {
TRACE(" - bitmap:\n"); TRACE(" - bitmap:\n");
...@@ -612,7 +613,7 @@ static BOOL wglUseFontOutlines_common(HDC hdc, ...@@ -612,7 +613,7 @@ static BOOL wglUseFontOutlines_common(HDC hdc,
UINT em_size = 1024; UINT em_size = 1024;
RECT rc; RECT rc;
TRACE("(%p, %d, %d, %d, %f, %f, %d, %p, %s)\n", hdc, first, count, TRACE("(%p, %ld, %ld, %ld, %f, %f, %d, %p, %s)\n", hdc, first, count,
listBase, deviation, extrusion, format, lpgmf, unicode ? "W" : "A"); listBase, deviation, extrusion, format, lpgmf, unicode ? "W" : "A");
if(deviation <= 0.0) if(deviation <= 0.0)
...@@ -878,7 +879,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) ...@@ -878,7 +879,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
if ((status = NtQueryVirtualMemory( GetCurrentProcess(), hinst, MemoryWineUnixFuncs, if ((status = NtQueryVirtualMemory( GetCurrentProcess(), hinst, MemoryWineUnixFuncs,
&unixlib_handle, sizeof(unixlib_handle), NULL ))) &unixlib_handle, sizeof(unixlib_handle), NULL )))
{ {
ERR( "Failed to load unixlib, status %#x\n", status ); ERR( "Failed to load unixlib, status %#lx\n", status );
return FALSE; return FALSE;
} }
...@@ -888,7 +889,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) ...@@ -888,7 +889,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
case DLL_THREAD_ATTACH: case DLL_THREAD_ATTACH:
if ((status = UNIX_CALL( thread_attach, NULL ))) if ((status = UNIX_CALL( thread_attach, NULL )))
{ {
WARN( "Failed to initialize thread, status %#x\n", status ); WARN( "Failed to initialize thread, status %#lx\n", status );
return FALSE; return FALSE;
} }
break; break;
......
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