Re: Fw: /usr/include/asm/system.h

Dave Jones (davej@suse.de)
Tue, 21 May 2002 14:48:33 +0200


> > > I am running a Mandrake 8.1 linux distribution with gcc 2.96. In
> > > the file /usr/include/asm/system.h, the function __cmpxchg uses a
> > > parameter named "new" which is a reserved keyword in C++.

The function is wrapped in an #ifdef __KERNEL__
Kernel code isn't meant to be compiled with a c++ compiler

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs
-
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/