Quantcast
Channel: GCC is non-conforming? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Lundin for GCC is non-conforming?

Pre-C11 compilers and libraries will not define __STDC_NO_THREADS__, nor will post-C11 ones with support for threading. So a correct check needs to look like this:#if __STDC_VERSION__ >= 201112L...

View Article


GCC is non-conforming?

I know that very few compilers actually support C11 threads (which is sad, but whatever). The C11 standard demands that an implementation that doesn't support threads defines __STDC_NO_THREADS__. Yet...

View Article
Browsing all 2 articles
Browse latest View live