[sane-devel] byteorder.h

Alessandro Zummo azummo-lists at towertech.it
Tue Jun 2 11:24:45 UTC 2009


On Mon, 01 Jun 2009 20:01:50 -0500
Chris Bagwell <chris at cnpbagwell.com> wrote:

> If no one else gives it a go, I'll have a hand at updating the autoconf 
> macro.  I've not much experience with cross platform locations of those 
> defines.
> 
> I see in my Fedora 11 Linux box that alot of those duplicates are 
> defined in <endian.h> (although perhaps hidden by some #ifdef's) and the 
> closest the macro looks for them is in <machine/endian.h>.
> 
> I don't know any history between those two locations or when a needed 
> __USE_BSD is defined by compilers.

 given that those kind of macros are defined almost everywhere, a smart
 byteorder.h should probably check each one of them before defining.

-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it




More information about the sane-devel mailing list