用g++ 编译 ffmpeg 编译出现 error: 'UINT64_C' was not declared in this scope 或 missing -D__STDC_CONSTANT_MACROS

在 libavutil/common.h 下

添加如下,即可解决

 

#ifdef __cplusplus
#define __STDC_CONSTANT_MACROS
#ifdef _STDINT_H
#undef _STDINT_H
#endif
extern "C" {
#include <stdint.h>
}
#endif

 

#ifndef   UINT64_C

#define   UINT64_C(value)   __CONCAT(value,ULL)

#endif

posted @ 2015-10-02 21:32  微信公众号--共鸣圈  阅读(1118)  评论(0编辑  收藏  举报