util: fix bloom test build on MacOS
Before this patch test build failed with following error: ``` /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/memory:2666:26: error: unexpected type name '_CompressedPair': expected expression struct _ALIGNAS_TYPE(_CompressedPair) _Storage { ``` This patch seems to be fix this issue. The root of the problem is in "trivia/util.h" module. It defines alignas macros: `#define alignas(_n) __attribute__((aligned(_n)))`. And it seems causes some issues in stdlib internals. To fix this issue let's unconditionally include stdalign.h for C++. According [1] this header should internally define __alignas_is_defined macro. [1] https://en.cppreference.com/w/cpp/language/alignas Part of #6576
Please register or sign in to comment