3 ms·
max_align_t is only defined in C11? Edit. Yes this looks to be the case for those of us using C99. Paul Eggert put in a patch for gnulib to cover this [1]. ty
by danieltillett 11y ago
max_align_t is only defined in C11?
Edit. Yes this looks to be the case for those of us using C99. Paul Eggert put in a patch for gnulib to cover this [1].
typedef union {
char *__p;
double __d;
long double __ld;
long int __i;
} max_align_t;
One thing I did learn looking through this patch was the difference NULL has in C++ and C. This is certainly not something I had ever considered.
1. https://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00170.html https://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg001...