google项目webrtc中的头文件[ typedefs.h ]定义范例

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

 

posted @ 2013-11-29 14:31  dish  阅读(807)  评论(0)    收藏  举报