[FFmpeg-cvslog] avutil/timestamp: Warn about missing __STDC_FORMAT_MACROS for C++ use
Michael Niedermayer
git at videolan.org
Tue Mar 18 18:26:05 CET 2014
ffmpeg | branch: release/1.2 | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 13 17:32:15 2014 +0100| [a58053dc246219245de6995b8ff34dbbe3c0c970] | committer: Michael Niedermayer
avutil/timestamp: Warn about missing __STDC_FORMAT_MACROS for C++ use
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 8b02dfd37cb3bc9521fc6e1f5b5f13c80d144cd2)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a58053dc246219245de6995b8ff34dbbe3c0c970
---
libavutil/timestamp.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavutil/timestamp.h b/libavutil/timestamp.h
index c7348d8..9559b0c 100644
--- a/libavutil/timestamp.h
+++ b/libavutil/timestamp.h
@@ -26,6 +26,10 @@
#include "common.h"
+#if defined(__cplusplus) && !defined(__STDC_FORMAT_MACROS) && !defined(PRId64)
+#error missing -D__STDC_FORMAT_MACROS / #define __STDC_FORMAT_MACROS
+#endif
+
#define AV_TS_MAX_STRING_SIZE 32
/**
More information about the ffmpeg-cvslog
mailing list