3 ms·
That's why you should try and use standard (or compiler-specific) version of max_align_t.
by huhtenberg 11y ago
That's why you should try and use standard (or compiler-specific) version of max_align_t.
- danieltillett 11y agomax_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...