Re: reminder - don't base 2.4 work on gtk 2.3
- From: Peter Bowen <pzb ximian com>
- To: Alan Cox <alan redhat com>
- Cc: iain <iain prettypeople org>, Mark McLoughlin <mark skynet ie>, gnome-hackers gnome org, desktop-devel-list gnome org
- Subject: Re: reminder - don't base 2.4 work on gtk 2.3
- Date: 28 Feb 2003 08:46:47 -0500
On Fri, 2003-02-28 at 08:09, Alan Cox wrote:
> > I'm thinking mainly of the gtk_idle and gtk_timeout functions and some
> > gdkpixbuf drawing routines.
>
> With newer gcc you can help people out here. The Linux kernel uses
>
> /*
> * Allow us to mark functions as 'deprecated' and have gcc emit a nice
> * warning for each use, in hopes of speeding the functions removal.
> * Usage is:
> * int __deprecated foo(void)
> */
> #if ( __GNUC__ == 3 && __GNUC_MINOR__ > 0 ) || __GNUC__ > 3
> #define __deprecated __attribute__((deprecated))
> #else
> #define __deprecated
> #endif
The G_GNUC_DEPRECATED macro, which is defined in glib/gmacro.h since
glib 2.1.3, does the same thing, with the exception that it checks for
GCC 3.1 or better.
Thanks.
Peter
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]