OS X 10.2 patch

Eric Hopper hopper at omnifarious.org
Tue Jun 20 21:51:40 CDT 2006


On Tue, Jun 20, 2006 at 11:49:55AM -0700, CM wrote:
> Of course, I am quite certain that this is the wrong way to go about
> things, since it includes no test for the platform and therefore will
> break others.  What is the best way to test for Darwin, and a
> particular version of Darwin at that?  I have installed all of the GCC
> updates, which also makes my situation a bit unique.  If anyone has
> any pointers to helpful documentation on this sort of platform
> detection, I will gladly accept them and do the research myself to
> keep the noise down on this channel.

stdint.h is actually a fairly standard header nowadays.  I believe it
is C99:

http://www.opengroup.org/onlinepubs/009695399/basedefs/stdint.h.html

So, I would recommend leaving it in and special casing the platforms on
which it breaks.  I do know that since the Mac uses gcc, this header is
likely to be there on any gcc that's ever been used on OS X.

Have fun (if at all possible),
-- 
"It does me no injury for my neighbor to say there are twenty gods or no God.
It neither picks my pocket nor breaks my leg."  --- Thomas Jefferson
"Go to Heaven for the climate, Hell for the company."  -- Mark Twain
-- Eric Hopper (http://www.omnifarious.org/~hopper) --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.selenic.com/pipermail/mercurial/attachments/20060620/79e07293/attachment.pgp


More information about the Mercurial mailing list