Re: [patch] __func__ -> __FUNCTION__

From: Andrew Morton (akpm@zip.com.au)
Date: Tue Aug 13 2002 - 03:13:04 EST


"H. Peter Anvin" wrote:
>
> Followup to: <3D58A45F.A7F5BDD@zip.com.au>
> By author: Andrew Morton <akpm@zip.com.au>
> In newsgroup: linux.dev.kernel
>
> > --- linux-2.5.31/include/linux/kernel.h Wed Jul 24 14:31:31 2002
> > +++ 25/include/linux/kernel.h Mon Aug 12 23:09:31 2002
> > @@ -13,6 +13,8 @@
> > #include <linux/types.h>
> > #include <linux/compiler.h>
> >
> > +#define __func__ __FUNCTION__ /* For old gcc's */
> > +
> > /* Optimization barrier */
> > /* The "volatile" is due to gcc bugs */
> > #define barrier() __asm__ __volatile__("": : :"memory")
>
> Shouldn't this be conditional on the version?

Could be. But I don't know what version to use.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:31 EST