[cfe-dev] [libcxx] What C standard is assumed in libcxx?

Asiri Rathnayake via cfe-dev cfe-dev at lists.llvm.org
Wed May 25 07:15:54 PDT 2016


OK, that makes sense.

So, libc++ essentially assumes C99 + some POSIX extensions like pthreads
et. al.

Is it OK to assume that libc++ will not depend on C11 functionality in
future?

Thanks!

/ Asiri


On Wed, May 25, 2016 at 3:10 PM, Joerg Sonnenberger via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> On Wed, May 25, 2016 at 10:46:03AM +0100, Asiri Rathnayake via cfe-dev
> wrote:
> > For example, the current std::thread support (C++11) does not assume the
> > underlying C library to be C11 compliant, it instead depends on pthreads.
> > On the other hand, we do seem to assume a C11 compliant <ctime> header
> > (e.g. timespec).
>
> I think you are confusing C11 functionality with basic POSIX functions.
> While C11 might have merged a bunch of things from POSIX, things like
> timespec are much older and wildly supported. That's unlike C11
> threading for example.
>
> Joerg
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160525/d609f122/attachment.html>


More information about the cfe-dev mailing list