[FFmpeg-cvslog] avutil/timestamp: Warn about missing __STDC_FORMAT_MACROS for C++ use

Michael Niedermayer git at videolan.org
Sat Mar 15 02:56:09 CET 2014


ffmpeg | branch: release/2.2 | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 13 17:32:15 2014 +0100| [70e3cc282bee235a9f55fc2bd342fbe6f6c0f7ce] | 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=70e3cc282bee235a9f55fc2bd342fbe6f6c0f7ce
---

 libavutil/timestamp.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavutil/timestamp.h b/libavutil/timestamp.h
index f63a08c..f010a7e 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