From 66872161cbb7187b0c20267653d415ef700aca35 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 5 Nov 2013 11:49:09 +0100 Subject: [PATCH] avutil/common: error out with clear message if __STDC_CONSTANT_MACROS is not defined with c++ Signed-off-by: Michael Niedermayer --- libavutil/common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavutil/common.h b/libavutil/common.h index b1203ad5a2..e487218e72 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -26,6 +26,10 @@ #ifndef 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 #include #include