The R Project SVN R

Rev

Rev 87486 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 87486 Rev 87686
Line 121... Line 121...
121
#else
121
#else
122
# include "lock.h"
122
# include "lock.h"
123
#endif
123
#endif
124
 
124
 
125
/* Alignment of types.  */
125
/* Alignment of types.  */
-
 
126
// R change: alignof is a keyword in C23
-
 
127
#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
126
#if defined __GNUC__ && __GNUC__ >= 2
128
#elif defined __GNUC__ && __GNUC__ >= 2
127
# define alignof(TYPE) __alignof__ (TYPE)
129
# define alignof(TYPE) __alignof__ (TYPE)
128
#else
130
#else
129
/* R change: was (int) */
131
/* R change: was (int) */
130
# define alignof(TYPE) \
132
# define alignof(TYPE) \
131
    ((size_t) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2)
133
    ((size_t) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2)