From 63bf6e51350b07aff419055625cfe8e822d5e132 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 30 Apr 2019 21:25:17 +0300 Subject: [PATCH] Undef bswap macroses if needed. GitOrigin-RevId: 864c725f32d19152bf658853e7648c3f9c62d3a4 --- tdutils/td/utils/bits.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tdutils/td/utils/bits.h b/tdutils/td/utils/bits.h index e35010cdb..add4ca4a6 100644 --- a/tdutils/td/utils/bits.h +++ b/tdutils/td/utils/bits.h @@ -12,6 +12,14 @@ #include #endif +#ifdef bswap32 +#undef bswap32 +#endif + +#ifdef bswap64 +#undef bswap64 +#endif + namespace td { inline int32 count_leading_zeroes32(uint32 x);