C locale

Jacob Carlborg doob at me.com
Sat Sep 28 10:32:40 PDT 2013


On 2013-09-28 01:44, "Luís Marques" <luis at luismarques.eu>" wrote:

> I can send a pull request with the values filled-in for Windows and OS X.

You need FreeBSD as well.

> Haha :-) I understand, my remark was lighthearted. Still, it seems a bit
> inconsistent and error prone, given the other identifiers. I mean, I'm
> all in favor of using "darwin" for OS X (more technically correct, and
> allows your code to compile in a pure Darwin environment), but if you
> changed it to "OSX" because it was more discoverable then... that's the
> kind of usability issue I'm talking about.

Yes, it is inconsistent.

> BTW, does that mean that gcc also defines capitalized "OSX", "Posix",
> etc.? (otherwise I don't understand your argument)

No, GCC defines __APPLE__ for Mac OS X and it does not define Posix.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list