Browse Source

avutil/timestamp: Warn about missing __STDC_FORMAT_MACROS for C++ use

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 12 years ago
parent
commit
8b02dfd37c
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavutil/timestamp.h

+ 4
- 0
libavutil/timestamp.h View File

@@ -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

/**


Loading…
Cancel
Save