- Clang insists that reference cannot be bound to dereferenced null pointer in well-defined C++ code (that is correct) and evaluates comparisons like &foo == 0 to false, which breaks GtkRadiant; "fix" this with a dirty hack by casting those "bad" references to a local volatile int variable - Remove no longer required and no-op -lpthread vs. -pthread patch hunk - Report operating system and correct compiler version in the About dialog - When fixing annoying "GtkSpinButton: setting an adjustment with non-zero page size is deprecated" warnings, replace find(1) with grep(1) to narrow down initial search results and, subsequently, sed(1) furiousness - Omit port revision bump as the port was BROKEN for quite some time
14 lines
528 B
C
14 lines
528 B
C
--- tools/quake3/q3map2/image.c.orig 2006-02-10 23:01:20.000000000 +0100
|
|
+++ tools/quake3/q3map2/image.c 2012-05-26 20:56:51.000000000 +0200
|
|
@@ -177,10 +177,9 @@ static void LoadPNGBuffer( byte *buffer,
|
|
pb.size = size;
|
|
pb.offset = 0;
|
|
png_set_read_fn( png, &pb, PNGReadData );
|
|
- png->io_ptr = &pb; /* hack! */
|
|
|
|
/* set error longjmp */
|
|
- if( setjmp( png->jmpbuf ) )
|
|
+ if( setjmp( png_jmpbuf(png) ) )
|
|
{
|
|
Sys_Printf( "WARNING: An error occurred reading PNG image\n" );
|
|
png_destroy_read_struct( &png, &info, &end );
|