classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] FYI: gnu_java_awt_peer_gtk_GtkClipboard.c 64-bit fix


From: Tom Tromey
Subject: Re: [cp-patches] FYI: gnu_java_awt_peer_gtk_GtkClipboard.c 64-bit fix
Date: 07 Nov 2005 14:15:23 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Twisti" == Christian Thalinger <address@hidden> writes:

Twisti> +#if SIZEOF_VOID_P == 8
Twisti> +static long current_selection = 0;
Twisti> +#else
Twisti>  static int current_selection = 0;
Twisti> +#endif
 
How about, instead of testing SIZEOF_VOID_P all over, we use a
typedef?  Or, given that this is gtk-using code, use the
GPOINTER_TO_SIZE and GSIZE_TO_POINTER macros where appropriate?

Tom




reply via email to

[Prev in Thread] Current Thread [Next in Thread]