Wireshark mailing list archives
Re: [Wireshark-commits] rev 38265: /trunk/gtk/ /trunk/gtk/: CMakeLists.txt old-gtk-compat.h sip_stat.c
From: Stig Bjørlykke <stig () bjorlykke org>
Date: Sat, 30 Jul 2011 11:10:05 +0200
On Sat, Jul 30, 2011 at 10:48 AM, <jmayer () wireshark org> wrote:
Log: Macros aren't functions: Back out rev 38264 and wait for someone who knows what he is doing to fix this
What about something like this? #if !GTK_CHECK_VERSION (2, 22, 0) /* Work around GTK bug: Sealed in 2.14, accessor provided in 2.22 */ inline void ws_gtk_table_get_size (GtkTable *table, guint *rows, guint *columns) { # if GTK_CHECK_VERSION (2, 14, 0) && defined(GSEAL_ENABLE) if (rows) *rows = table->_g_sealed__nrows; if (columns) *columns = table->_g_sealed__ncols; # else if (rows) *rows = table->nrows; if (columns) *columns = table->ncols; # endif } # define gtk_table_get_size ws_gtk_table_get_size #endif -- Stig Bjørlykke ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Re: [Wireshark-commits] rev 38265: /trunk/gtk/ /trunk/gtk/: CMakeLists.txt old-gtk-compat.h sip_stat.c Stig Bjørlykke (Jul 30)