[FFmpeg-cvslog] avutil/common: error out with clear message if __STDC_CONSTANT_MACROS is not defined with c++
Michael Niedermayer
git at videolan.org
Tue Nov 5 23:57:53 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 5 11:49:09 2013 +0100| [66872161cbb7187b0c20267653d415ef700aca35] | committer: Michael Niedermayer
avutil/common: error out with clear message if __STDC_CONSTANT_MACROS is not defined with c++
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66872161cbb7187b0c20267653d415ef700aca35
---
libavutil/common.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavutil/common.h b/libavutil/common.h
index b1203ad..e487218 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 <errno.h>
#include <inttypes.h>
#include <limits.h>
More information about the ffmpeg-cvslog
mailing list