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

From: Dominik Kubla (dominik.kubla@uni-mainz.de)
Date: Thu Apr 27 2000 - 16:10:23 EST


On Thu, Apr 27, 2000 at 07:19:02PM +0200, Manfred Spraul wrote:
...
> Someone might try to port a device driver that was written in C++ from
> another OS to Linux, and then this would be a problem.

You're joking, right?

> We should not use "new" and "virtual" as variable names, and perhaps we
> should also add ".o.cpp" to Rules.mak and mkdep.

Excuse my ignorance, but why not just use a dummy header like this:

extern "C" {
#include <linux/header1.h>
#include <linux/header2.h>
...
}

Dominik Kubla

-- 
  Networking Group,  Hospital of Johannes Gutenberg-University                  
  Obere Zahlbacher Straße 69, 55101 Mainz, Germany                              
  Tel: +49 (0)6131 17-2482   FAX: +49 (0)6131 17-5521                           

- 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