在vs2008下使用ffmpeg(1):inttypes.h的问题

来源:互联网 发布:iapp锁机源码大全 编辑:程序博客网 时间:2024/06/07 04:49

 

快乐虾

http://blog.csdn.net/lights_joy/

lights@hb165.com

 

本文适用于

ffmpeg-checkout-20081210

vs2008

Windows XP

  

欢迎转载,但请保留作者信息

 

ffmpeg中使用了

#include <inttypes.h>

vs2008下没有这个文件,实际上这个文件无非也就是一些整形定义而已,可以直接注释掉这个包含,然后在config.h中加上类似的定义:

typedef char int8_t;

typedef unsigned char uint8_t;

typedef short int16_t;

typedef unsigned short uint16_t;

typedef int int32_t;

typedef unsigned int uint32_t;

typedef __int64 int64_t;

typedef unsigned __int64 uint64_t;

<stdint.h>这个头文件同样可以直接注释掉。

 

 

原创粉丝点击