Re: OSX platform code
- Posted by Jim C. Brown Jul 11, 2008
- 779 views
Jeremy Cowgar said...
Marco A. Achury P. said...
What platform() code do you plan to use on OSX?
So, the long story is, platform() returns 4, but you should use ifdef.
Jeremy
I recall that platform() once returned 4 for FreeBSD, but Rob got so many complaints over it that he changed it to return 3 for FreeBSD.k
Also, the builtin platform() returns a 4 for OSX but the machine function (machine_func(53, {}) ) returns a 3 on OSX. So there is somewhat of an inconsistency here, but probably not a big deal since both are now decapricated.
Another reason to move to the ifdef system. :p