* lib/stddef.in.h [OS/2 kLIBC]: Include <cstddef> in C++ mode.
+2021-01-19 KO Myung-Hun <komh78@gmail.com>
+
+ stddef: Fix compilation for max_align_t on OS/2 kLIBC.
+ * lib/stddef.in.h [OS/2 kLIBC]: Include <cstddef> in C++ mode.
+
2021-01-19 KO Myung-Hun <komh78@gmail.com>
yield: Implement for OS/2 kLIBC.
we are currently compiling with gcc.
On MSVC, max_align_t is defined only in C++ mode, after <cstddef> was
included. Its definition is good since it has an alignment of 8 (on x86
- and x86_64). */
-#if defined _MSC_VER && defined __cplusplus
+ and x86_64).
+ Similarly on OS/2 kLIBC. */
+#if (defined _MSC_VER || (defined __KLIBC__ && !defined __LIBCN__)) \
+ && defined __cplusplus
# include <cstddef>
#else
# if ! (@HAVE_MAX_ALIGN_T@ || defined _GCC_MAX_ALIGN_T)