google项目webrtc中的头文件[ typedefs.h ]定义范例
2013-11-29 14:31
295 查看
google开源项目webrtc 头文件[ typedefs.h ] 定义范例:
#if !defined(_MSC_VER) #include <stdint.h> #else // Define C99 equivalent types. // Since MSVC doesn't include these headers, we have to write our own // version to provide a compatibility layer between MSVC and the WebRTC // headers. typedef signed char int8_t; typedef signed short int16_t; typedef signed int int32_t; typedef signed long long int64_t; typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; typedef unsigned long long uint64_t; #endif #if defined(WIN32) typedef __int64 WebRtc_Word64; typedef unsigned __int64 WebRtc_UWord64; #else typedef int64_t WebRtc_Word64; typedef uint64_t WebRtc_UWord64; #endif typedef int32_t WebRtc_Word32; typedef uint32_t WebRtc_UWord32; typedef int16_t WebRtc_Word16; typedef uint16_t WebRtc_UWord16; typedef char WebRtc_Word8; typedef uint8_t WebRtc_UWord8; // Define endian for the platform #define WEBRTC_LITTLE_ENDIAN #elif defined(WEBRTC_TARGET_MAC_INTEL) #include <stdint.h> typedef int64_t WebRtc_Word64; typedef uint64_t WebRtc_UWord64; typedef int32_t WebRtc_Word32; typedef uint32_t WebRtc_UWord32; typedef int16_t WebRtc_Word16; typedef char WebRtc_Word8; typedef uint16_t WebRtc_UWord16; typedef uint8_t WebRtc_UWord8; // Define endian for the platform #define WEBRTC_LITTLE_ENDIAN #else #error "No platform defined for WebRTC type definitions (typedefs.h)" #endif
相关文章推荐
- google开源了WebRTC项目
- Google开源实时通信项目WebRTC
- Google开源实时通信项目WebRTC
- google开源了WebRTC项目(2)
- google开源了WebRTC项目(5)
- google开源了WebRTC项目(1)
- google开源了WebRTC项目(完整版)
- Google开源实时通信项目WebRTC
- google开源了WebRTC项目(3)
- Google开源实时通信项目WebRTC
- google开源了WebRTC项目(1)
- Google开源实时通信项目WebRTC
- Google开源实时通信项目WebRTC
- Google开源实时通信项目WebRTC
- caffe架构学习之(一)--基于google protocol buffer开源项目的深度网络定义
- google开源了WebRTC项目(4)
- Google开源实时通信项目WebRTC
- caffe架构学习之(一)--基于google protocol buffer开源项目的深度网络定义
- 4-4 求自定类型元素的平均 (10分) 本题要求实现一个函数,求N个集合元素S[]的平均值,其中集合元素的类型为自定义的ElementType。 函数接口定义: ElementType Aver
- 编译器&调试---Android项目遇到"TheType R is already defined"