Re: reminder - don't base 2.4 work on gtk 2.3



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

_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers



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