_WIN32_WCE

/** * @file * @brief Platform Configuration */ #ifndef _AP4_CONFIG_H_ #define _AP4_CONFIG_H_ /*---------------------------------------------------------------------- | defaults +---------------------------------------------------------------------*/ #define AP4_CONFIG_HAVE_STDIO_H #define AP4_CONFIG_HAVE_ASSERT_H #define AP4_CONFIG_HAVE_STRING_H #define AP4_CONFIG_HAVE_SNPRINTF #define AP4_CONFIG_HAVE_VSNPRINTF #define AP4_CONFIG_HAVE_INT64 /*---------------------------------------------------------------------- | byte order +---------------------------------------------------------------------*/ // define AP4_PLATFORM_BYTE_ORDER to one of these two choices #define AP4_PLATFORM_BYTE_ORDER_BIG_ENDIAN 0 #define AP4_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN 1 #if !defined(AP4_PLATFORM_BYTE_ORDER) #if defined(__ppc__) #define AP4_PLATFORM_BYTE_ORDER AP4_PLATFORM_BYTE_ORDER_BIG_ENDIAN #elif defined(_MSC_VER) #if defined(_M_IX86) || defined(_M_X64) || defined(_M_ARM) || defined(_M_ARM64) #define AP4_PLATFORM_BYTE_ORDER AP4_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN #endif #elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__arm64__) #define AP4_PLATFORM_BYTE_ORDER AP4_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN #endif #endif /*---------------------------------------------------------------------- | standard C++ runtime +---------------------------------------------------------------------*/ #define APT_CONFIG_HAVE_NEW_H /*---------------------------------------------------------------------- | platform specifics +---------------------------------------------------------------------*/ /* Microsoft Platforms */ #if defined(_MSC_VER) #define AP4_CONFIG_INT64_TYPE __int64 #if (_MSC_VER >= 1400) && !defined(_WIN32_WCE) #define AP4_CONFIG_HAVE_FOPEN_S #define AP4_snprintf(s,c,f,...) _snprintf_s(s,c,_TRUNCATE,f,__VA_ARGS__) #define AP4_vsnprintf(s,c,f,a) _vsnprintf_s(s,c,_TRUNCATE,f,a) #define fileno _fileno #define AP4_fseek _fseeki64 #define AP4_ftell _ftelli64 #else #define AP4_snprintf _snprintf #define AP4_vsnprintf _vsnprintf #endif #if defined(_WIN32_WCE) #define AP4_fseek fseek #define AP4_ftell ftell #endif #if defined(_DEBUG) #define _CRTDBG_MAP_ALLOC #endif #endif /* Cygwin */ #if defined(__CYGWIN__) #define AP4_fseek fseek #define AP4_ftell ftell #endif /* Symbian */ #if defined(__SYMBIAN32__) #undef APT_CONFIG_HAVE_NEW_H #include "e32std.h" /** * Define the Platform byte order here * for Symbian. */ #define AP4_PLATFORM_BYTE_ORDER AP4_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN #define AP4_fseek fseek #define AP4_ftell ftell #define explicit #endif /* Android */ #if defined(ANDROID) #if !defined(AP4_CONFIG_NO_RTTI) #define AP4_CONFIG_NO_RTTI #endif #if !defined(AP4_CONFIG_NO_EXCEPTIONS) #define AP4_CONFIG_NO_EXCEPTIONS #endif #endif /* Emscripten */ #ifdef __EMSCRIPTEN__ #define AP4_PLATFORM_BYTE_ORDER AP4_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN #endif /*---------------------------------------------------------------------- | defaults +---------------------------------------------------------------------*/ #if !defined(AP4_CONFIG_INT64_TYPE) #define AP4_CONFIG_INT64_TYPE long long #endif #if !defined(AP4_fseek) #define AP4_fseek fseeko #endif #if !defined(AP4_ftell) #define AP4_ftell ftello #endif /* some compilers (ex: MSVC 8) deprecate those, so we rename them */ #if !defined(AP4_snprintf) #define AP4_snprintf snprintf #endif #if !defined(AP4_vsnprintf) #define AP4_vsnprintf vsnprintf #endif #endif // _AP4_CONFIG_H_ 详细注释上述代码
最新发布
09-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值