avutil/common: error out with clear message if __STDC_CONSTANT_MACROS is not defined with c++
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6cfaf9cde8
commit
66872161cb
@ -26,6 +26,10 @@
|
|||||||
#ifndef AVUTIL_COMMON_H
|
#ifndef AVUTIL_COMMON_H
|
||||||
#define AVUTIL_COMMON_H
|
#define AVUTIL_COMMON_H
|
||||||
|
|
||||||
|
#if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS) && !defined(UINT64_C)
|
||||||
|
#error missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user