diff --git a/libs/srtp/crypto/include/datatypes.h b/libs/srtp/crypto/include/datatypes.h index 34634e318b..31d07db15f 100644 --- a/libs/srtp/crypto/include/datatypes.h +++ b/libs/srtp/crypto/include/datatypes.h @@ -409,11 +409,11 @@ static inline uint32_t be32_to_cpu(uint32_t v) { # define be32_to_cpu(x) ntohl((x)) # endif /* HAVE_X86 */ -# ifdef NO_64BIT_MATH - /* use the make64 functions to do 64-bit math */ -# define be64_to_cpu(v) (make64(htonl(low32(v)),htonl(high32(v)))) -# else -# define be64_to_cpu(v) ((ntohl((uint32_t)(v >> 32))) | (((uint64_t)ntohl((uint32_t)v)) << 32)) +# ifdef NO_64BIT_MATH + /* use the make64 functions to do 64-bit math */ +# define be64_to_cpu(v) (make64(htonl(low32(v)),htonl(high32(v)))) +# else +# define be64_to_cpu(v) ((ntohl((uint32_t)(v >> 32))) | (((uint64_t)ntohl((uint32_t)v)) << 32)) # endif #endif /* ! SRTP_KERNEL_LINUX */