From 814f8fe7abda53d6b4b269bb682e500769053969 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sun, 14 Jul 2019 03:19:40 +0300 Subject: [PATCH] mdbx-test: portability - undefine BSD's roundup2() macro. Change-Id: Ib7aa43645cabba648ed6a43bfb26a7cc365d7feb --- test/utils.h | 1 + 1 file changed, 1 insertion(+) diff --git a/test/utils.h b/test/utils.h index 82d6c25b..73c0e586 100644 --- a/test/utils.h +++ b/test/utils.h @@ -235,6 +235,7 @@ static __inline uint64_t mul_64x64_high(uint64_t a, uint64_t b) { static __inline bool is_power2(size_t x) { return (x & (x - 1)) == 0; } +#undef roundup2 static __inline size_t roundup2(size_t value, size_t granularity) { assert(is_power2(granularity)); return (value + granularity - 1) & ~(granularity - 1);