mdbx: использование __has_c_attribute() и __has_cxx_attribute(), добавление __has_C23_or_CXX_attribute().

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2024-10-10 06:16:49 +03:00
parent 22233b0991
commit bfce1cd24d
3 changed files with 54 additions and 45 deletions

View File

@@ -282,7 +282,7 @@ struct actor_params_pod {
// FIXME: TODO
return 0;
}
static MDBX_PURE_FUNCTION uint64_t serial_mask(unsigned bits) {
MDBX_PURE_FUNCTION static uint64_t serial_mask(unsigned bits) {
assert(bits > 0 && bits <= 64);
return (~(uint64_t)0u) >> (64 - bits);
}