Skip to content

Commit c3060e6

Browse files
author
ripley
committed
updates on detecting C23
git-svn-id: https://svn.r-project.org/R/trunk@87374 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 8bc2465 commit c3060e6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/manual/R-exts.texi

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3222,8 +3222,11 @@ LDFLAGS=`"$@{R_HOME@}/bin/R" CMD config LDFLAGS`
32223222
The (claimed) C standard in use can be checked by the macro
32233223
@code{__STDC_VERSION__}. This is undefined in C89/C90 and should have
32243224
values @code{199901L}, @code{201112L} and @code{201710L} for C99, C11
3225-
and C17. The definitive value for C23 seems to be @code{202311L} but
3226-
compilers are currently using @code{202000L}.
3225+
and C17. The definitive value for C23 is @code{202311L} but some
3226+
compilers@footnote{for example @command{gcc} 14 and Apple
3227+
@command{clang} 16, but not LLVM @command{clang 18} and later.} are
3228+
currently using @code{202000L} and requiring the standard to be
3229+
specified as @code{c2x}.
32273230
@c https://gustedt.gitlabpages.inria.fr/c23-library/
32283231
C23 has macros similar to C++ `feature tests' for many of its changes,
32293232
for example @code{__STDC_VERSION_LIMITS_H__}.

0 commit comments

Comments
 (0)