/* Copyright 2019 Google LLC. All rights reserved. This file and proprietary */ /* source code may only be used and distributed under the Widevine Master */ /* License Agreement. */ #ifndef WIDEVINE_ODK_SRC_ODK_ENDIAN_H_ #define WIDEVINE_ODK_SRC_ODK_ENDIAN_H_ #ifdef __cplusplus extern "C" { #endif #if defined(__linux__) || defined(__ANDROID__) # include # define oemcrypto_htobe32 htobe32 # define oemcrypto_be32toh be32toh # define oemcrypto_htobe64 htobe64 # define oemcrypto_be64toh be64toh #else /* defined(__linux__) || defined(__ANDROID__) */ uint32_t oemcrypto_htobe32(uint32_t u32); uint32_t oemcrypto_be32toh(uint32_t u32); uint64_t oemcrypto_htobe64(uint64_t u64); uint64_t oemcrypto_be64toh(uint64_t u64); #endif /* defined(__linux__) || defined(__ANDROID__) */ #ifdef __cplusplus } #endif #endif /* WIDEVINE_ODK_SRC_ODK_ENDIAN_H_ */