aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-13 17:32:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-06-25 16:18:39 +0200
commit91d024d75dce74f2e149be9092debfe6a9cec2b4 (patch)
treeefcd8bcc6ed05f3c790c598f7f5603fc21045268
parent5ee384c4eb6b4f6cc724bc2e72a31a3bc9839247 (diff)
downloadffmpeg-91d024d75dce74f2e149be9092debfe6a9cec2b4.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.h4
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
/**