[sane-devel] Re: Darwin/MacOSX

Hubert Figuiere hfiguiere@teaser.fr
Mon, 2 Dec 2002 11:44:24 +0100


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.


Hub