Merge cdm changes to android repo
Bug: 251924225 Test: GtsMediaTestCases Change-Id: I1b4e64c0abf701fe1f5017f14dc72b72c3ea6770
This commit is contained in:
@@ -25,6 +25,14 @@ extern "C" {
|
||||
#define oemcrypto_be32toh OSSwapBigToHostInt32
|
||||
#define oemcrypto_htobe64 OSSwapHostToBigInt64
|
||||
#define oemcrypto_be64toh OSSwapBigToHostInt64
|
||||
#elif defined(_WIN32)
|
||||
#include <winsock2.h>
|
||||
#define oemcrypto_htobe16 htons
|
||||
#define oemcrypto_be16toh ntohs
|
||||
#define oemcrypto_htobe32 htonl
|
||||
#define oemcrypto_be32toh ntohl
|
||||
#define oemcrypto_htobe64 htonll
|
||||
#define oemcrypto_be64toh ntohll
|
||||
#else /* defined(__linux__) || defined(__ANDROID__) */
|
||||
uint32_t oemcrypto_htobe16(uint16_t u16);
|
||||
uint32_t oemcrypto_be16toh(uint16_t u16);
|
||||
|
||||
Reference in New Issue
Block a user