[sane-devel] compiling SANE with Intel icc

Henning Meier-Geinitz henning at meier-geinitz.de
Tue Feb 18 20:28:39 GMT 2003


Hi,

On Tue, Feb 18, 2003 at 02:47:13PM +0100, stef wrote:
> 	compiling SANE under linux with Intel icc fails because inb/outb are 
> not defined, due to an ifdef __GNUC__ in sys/io.h .

Known issue (see README.linux).

> So testing HAVE_SYS_IO_H isn't enough, We should also test for
> __GNUC__ . Since icc accepts gcc inline assembly, we can use the code
> written to define inb and outbi when there is no io.h.
>
> 	Here are the patches I needed to compile SANE with icc. The biggest 
> change is in qcam.c, where a fallback is provided when direct io is missing.

Ok, but can we be sure that all the sys/io.h and asm/io.h files use
the same __GNUC__ test? What I mean is: are we sure that there isn't a
platform where sys/io.h or asm/io.h exists and works with non-gcc
compilers? So we would deactivate access that worked until now?

Bye,
  Henning



More information about the sane-devel mailing list