[sane-devel] Re: Darwin/MacOSX

Henning Meier-Geinitz henning@meier-geinitz.de
Mon, 2 Dec 2002 20:06:20 +0100


Hi,

On Mon, Dec 02, 2002 at 11:44:24AM +0100, Hubert Figuiere wrote:
> On vendredi, nov 29, 2002, at 20:18 Europe/Paris, Henning Meier-Geinitz
> >As the check for dlopen is already there, can you tell us, how to
> >check for MAcOS in configure? Ok, I could write a cpp test for
> >__APPLE__ but maybe there is a nicer way.
> 
> Please, check for __APPLE__  && __MACH__
> Because __APPLE__ is defined for older MacOS version. __MACH__ will be 
> defined if on a Mach kernel based OS. Combination of the 2 means MacOS 
> X.

Thanks for mentioning. The current code does not explicitely test for
__APPLE__ (but for some header files) but maybe it's necessary in
future.

Bye,
  Henning