diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-13 17:32:15 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-15 02:42:11 +0100 |
commit | 70e3cc282bee235a9f55fc2bd342fbe6f6c0f7ce (patch) | |
tree | e934175cca62864f1f2b5aed48a2a51e4a6233e4 | |
parent | 242df26b44409e0809014562986e88a5746b8918 (diff) | |
download | ffmpeg-70e3cc282bee235a9f55fc2bd342fbe6f6c0f7ce.tar.gz |
avutil/timestamp: Warn about missing __STDC_FORMAT_MACROS for C++ use
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8b02dfd37cb3bc9521fc6e1f5b5f13c80d144cd2)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavutil/timestamp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/timestamp.h b/libavutil/timestamp.h index f63a08c579..f010a7ee38 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 /** |