Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/support/counting.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,14 @@ void __libc_free(void*);
#define WEBCPP_TEST_C(name) __libc_##name
// glibc declares these with __THROW, noexcept in C++11 and later: a replacement must match.
#define WEBCPP_TEST_C_NOEXCEPT noexcept
// Clang's <mm_malloc.h>, which the x86 intrinsic headers include (<emmintrin.h>, included by
// Boost.URL and Boost.JSON among others), redeclares posix_memalign without an exception
// specification. Clang accepts that redeclaration only when the declaration before it is a
// system header's (glibc's), so <mm_malloc.h> comes before the replacement below: included after
// it, it fails to compile ("'posix_memalign' is missing exception specification").
#if __has_include(<mm_malloc.h>)
#include <mm_malloc.h>
#endif
#else
#define WEBCPP_TEST_C(name) emscripten_builtin_##name
// Emscripten's musl declares them without an exception specification.
Expand Down
Loading