diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-13 17:32:15 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-13 17:32:15 +0100 |
commit | 8b02dfd37cb3bc9521fc6e1f5b5f13c80d144cd2 (patch) | |
tree | 8f55b7f20d3873980534afd687fa9a922ea32599 | |
parent | f385a099c1999b9d9583324b2a3bb2b6bc98b4a1 (diff) | |
download | ffmpeg-8b02dfd37cb3bc9521fc6e1f5b5f13c80d144cd2.tar.gz |
avutil/timestamp: Warn about missing __STDC_FORMAT_MACROS for C++ use
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 /** |