[FFmpeg-cvslog] avutil/timestamp: Warn about missing __STDC_FORMAT_MACROS for C++ use
Michael Niedermayer
git at videolan.org
Tue Mar 18 18:58:45 CET 2014
ffmpeg | branch: release/2.1 | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 13 17:32:15 2014 +0100| [44799d269fd0c5fc3436987df8af58551e62a7ac] | 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=44799d269fd0c5fc3436987df8af58551e62a7ac
---
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