]> git.sesse.net Git - ffmpeg/commitdiff
avutil/common: error out with clear message if __STDC_CONSTANT_MACROS is not defined...
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 5 Nov 2013 10:49:09 +0000 (11:49 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 5 Nov 2013 21:10:02 +0000 (22:10 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/common.h

index b1203ad5a25e3c9467550b078ce13bf3cddee516..e487218e729b3271f6b1e4e64b3f1efd3785751f 100644 (file)
 #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>