[cfe-dev] [PATCH] Libc++ Windows fixes (Attention all libc++ ports!!!)

Matthieu Monrocq matthieu.monrocq at gmail.com
Tue Sep 27 10:35:21 PDT 2011


2011/9/26 Thomas Gamper <icicle at mail.cg.tuwien.ac.at>

> For whatever reason Microsoft is prefixing many standard POSIX
> functions with an underscore:
>
> http://msdn.microsoft.com/en-us/library/ybk95axf%28v=vs.80%29.aspx
>
> int _sprintf_l(
>    char *buffer,
>    const char *format,
>    locale_t locale [,
>       argument] ...
> );
>
> I hope this helps,
> TOM
>

Probably because such identifiers (leading underscore) are reserved for the
implementation at global scope. The POSIX Standard "pollutes" the global
namespace with identifiers that fall within userland therefore, while MSVC
does not :)

-- Matthieu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110927/2d29882a/attachment.html>


More information about the cfe-dev mailing list