#define __STDC_CONSTANT_MACROS的作用
来源:互联网 发布:淘宝钻石展位和直通车 编辑:程序博客网 时间:2024/05/10 04:21
最近在学FFmpeg,看到demo开头有这么一行#define __STDC_CONSTANT_MACROS 瞬间就懵了(好吧,我是搞java的)经过一番搜索后,其作用为:
__STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS are a workaround to allow C++ programs to use stdint.h macros specified in the C99 standard that aren't in the C++ standard. The macros, such as UINT8_MAX, INT64_MIN, and INT32_C() may be defined already in C++ applications in other ways. To allow the user to decide if they want the macros defined as C99 does, many implementations require that __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS be defined before stdint.h is included.This isn't part of the C++ standard, but it has been adopted by more than one implementation.
原文连接
1 0
- #define __STDC_CONSTANT_MACROS的作用
- __STDC_CONSTANT_MACROS和__STDC_CONSTANT_MACROS的作用
- #define WIN32_LEAN_AND_MEAN 的作用
- #define WIN32_LEAN_AND_MEAN 的作用
- define的作用域
- #define的作用域
- #define的作用域
- define中#的作用
- #define WIN32_LEAN_AND_MEAN 的作用
- #define WIN32_LEAN_AND_MEAN 的作用
- #define指令的作用
- #define指令的作用
- fatal error C1189: #error : missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS
- ffmpeg:fatal error C1189: #error : missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS
- fatal error C1189: #error : missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS
- #define中#和##的作用
- #define 中 # 和 ## 的作用
- ifndef define endif的作用
- 用两个栈实现队列
- 算法:二分查找(折半查找)
- 网络超时检测的三种方法
- MySQL数据库远程访问权限打开
- 科目二考试技巧
- #define __STDC_CONSTANT_MACROS的作用
- 利用ContentObserver获取时间制式12/24小时,更新系统时间
- hdu 5775 Bubble Sort 树状数组(多校)
- poj3414——Pots(BFS)
- 前端学习_Series2_01.JavaScript_05
- 跳台阶算法
- Maven工程加载资源包(jar包)报错的问题
- MYSQL优化
- Codeforces702C - Cellular Network(二分)