avutil/timestamp: Warn about missing __STDC_FORMAT_MACROS for C++ use
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 13 Mar 2014 16:32:15 +0000 (17:32 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Mar 2014 17:26:01 +0000 (18:26 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8b02dfd37cb3bc9521fc6e1f5b5f13c80d144cd2)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/timestamp.h

index f63a08c..f010a7e 100644 (file)
 
 #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
 
 /**