Skip to content

Commit db6fa04

Browse files
author
ripley
committed
alignof is a C23 keyword
git-svn-id: https://svn.r-project.org/R/trunk@87686 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent dfcbb7e commit db6fa04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/extra/intl/dcigettext.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ extern int errno;
123123
#endif
124124

125125
/* Alignment of types. */
126-
#if defined __GNUC__ && __GNUC__ >= 2
126+
// R change: alignof is a keyword in C23
127+
#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
128+
#elif defined __GNUC__ && __GNUC__ >= 2
127129
# define alignof(TYPE) __alignof__ (TYPE)
128130
#else
129131
/* R change: was (int) */

0 commit comments

Comments
 (0)