https://bugs.llvm.org/show_bug.cgi?id=48704
Bug ID: 48704
Summary: Default to C11 standard and missing
__STDC_NO_THREADS__ ( windows)
Product: clang
Version: unspecified
Hardware: PC
OS: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: C
Assignee: unassignedclangb...@nondot.org
Reporter: patrick.peliss...@gmail.com
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
Since the switch to default to C11, compliant program fails to build **by
default** (without forcing another mode) on windows:
#if defined(__STDC_VERSION__) && \
(__STDC_VERSION__ >= 201102L) && \
!defined(__STDC_NO_THREADS__)
# include <threads.h>
#endif
[ build with only "clang.exe -c test.c" ]
It is probably the same for other predefined macros.
This may be a library issue, but is it ok to default to C11 if there is known
library issue for such support?
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs