[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: PCB patches
On Mon, Jun 8, 2009 at 7:08 PM, der Mouse<mouse@xxxxxxxxxxxxxxxxxxxx> wrote:
>> It's safe. __DARWIN__ would be bad as darwin can run on other
>> hardware.
>
> Does __DARWIN__ even exist? A while ago I wanted to port some software
> to Tiger and the best approximation to "we're on Darwin" I found was
> __MACH__ and __APPLE__ together. Was it brought in post-Tiger, or did
> I do something wrong, or what? (I was using Apple's compiler suite.)
>
Apparently not... i though it was there but it seems that it the and
of __APPLE__ and __MACH__ usually, and recommended to not use it if
possible.
I think it might have been others code I have used that tested uname
in configure, to set __DARWIN_.
The real fix if to have configure define __MAC_OS_X__ or something of
the like based on target.
But As X11 itself has a few __APPLE__s scattered apart i am not
worried that it will fail to work.
> /~\ The ASCII Mouse
> \ / Ribbon Campaign
> X Against HTML mouse@xxxxxxxxxxxxxxxxxxxx
> / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
>
>
> _______________________________________________
> geda-user mailing list
> geda-user@xxxxxxxxxxxxxx
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
>
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user