ports/devel/kyra/files/patch-guitest__guitest.cpp
Piotr Kubaj 0aa4d822f2 devel/kyra: fix build on non-x86
Fun fact: for some reason base GCC on 12.2-RELEASE on powerpc64 can build this
port without this patch even though __GNUC__ is defined.
2021-10-25 23:28:49 +00:00

26 lines
1.4 KiB
C++

--- guitest/guitest.cpp.orig 2005-04-07 05:53:51 UTC
+++ guitest/guitest.cpp
@@ -96,19 +96,19 @@ class MyConsole : public KrConsole
switch ( event.type )
{
case KrWidgetEvent::ACTIVATED:
- sprintf( buf, "ACTIVATED %s source=0x%x\n", source->WidgetType(), (unsigned)source );
+ sprintf( buf, "ACTIVATED %s source=0x%x\n", source->WidgetType(), (uintptr_t)source );
break;
case KrWidgetEvent::DEACTIVATED:
- sprintf( buf, "DEACTIVATED %s source=0x%x\n", source->WidgetType(), (unsigned)source );
+ sprintf( buf, "DEACTIVATED %s source=0x%x\n", source->WidgetType(), (uintptr_t)source );
break;
case KrWidgetEvent::COMMAND:
- sprintf( buf, "COMMAND %s source=0x%x command=%s arg=%s\n", source->WidgetType(), (unsigned)source, event.command.command, event.command.arg );
+ sprintf( buf, "COMMAND %s source=0x%x command=%s arg=%s\n", source->WidgetType(), (uintptr_t)source, event.command.command, event.command.arg );
break;
case KrWidgetEvent::SELECTION:
- sprintf( buf, "SELECTION %s source=0x%x id=%d text=%s\n", source->WidgetType(), (unsigned)source, event.selection.index, event.selection.text ? event.selection.text : "(null)" );
+ sprintf( buf, "SELECTION %s source=0x%x id=%d text=%s\n", source->WidgetType(), (uintptr_t)source, event.selection.index, event.selection.text ? event.selection.text : "(null)" );
break;
default: