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

Dave Jones (
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.
| SuSE Labs
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at