[sane-devel] sane.h misses extern "C"
Henning Meier-Geinitz
henning@meier-geinitz.de
Mon, 12 Jul 2004 19:41:19 +0200
Hi,
On Mon, Jul 12, 2004 at 10:00:53AM +0200, Rene Rebe wrote:
> Is there a good reason why the installed sane.h misses the usual
> header lines needed for compilation with C++?
Well, it's a C and not a C++ header and these #ifdefs are ugly :-)
Isn't it a better solution to use the extern "C" when including the
file in the C++ .C code if you really want to use sane.h in C++? Or do
we get trouble this way because it includes the structs?
> May I just commit them to CVS?
Please wait some time before doing that. Maybe someone else can tell
us real reasons not to use the extern "C" stuff.
Bye,
Henning