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

From: Manfred Spraul (manfreds@colorfullife.com)
Date: Thu Apr 27 2000 - 17:57:41 EST


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/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:13 EST