Re: [PATCH] C++ breaks on linux/ioport.h

Manfred Spraul (manfreds@colorfullife.com)
Fri, 28 Apr 2000 00:57:41 +0200


Dominik Kubla wrote:
>
> Excuse my ignorance, but why not just use a dummy header like this:
>
> extern "C" {
> #include <linux/header1.h>
> #include <linux/header2.h>
> ...
> }

I tried that a few weeks ago:
3 or 4 header files contain variables with the names

new
virtual

new is reserved, and virtual caused a parse error somewhere in an inline
function (page->virtual).

--
	Manfred

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/