mirror of
https://git.freebsd.org/ports.git
synced 2025-05-08 03:40:46 -04:00
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.
26 lines
1.4 KiB
C++
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:
|