Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 38265: /trunk/gtk/ /trunk/gtk/: CMak

From: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
Date: Sat, 30 Jul 2011 11:10:05 +0200
On Sat, Jul 30, 2011 at 10:48 AM,  <jmayer@xxxxxxxxxxxxx> 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