Hello,
Welcome to Microsoft Q&A!
I suggest you could try to use #include <cstddef>
instead of #include <stddef.h>
.
It seems that it's only supported in C++ right now. There is no definition of max_align_t
in stddef.h
.
And someone has raised a similar issue but it was closed because it was lower priority, and if your issue is tricky, I suggest you could post another issue.
You could also refer to the thread: https://github.com/emscripten-core/emscripten/pull/8908
Thank you.
Jeanine
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.