[FFmpeg-devel] [PATCH 1/2] avutil/common: error out with clear message if __STDC_CONSTANT_MACROS is not defined with c++
Stefano Sabatini
stefasab at gmail.com
Tue Nov 5 12:28:32 CET 2013
On date Tuesday 2013-11-05 12:03:47 +0100, Michael Niedermayer encoded:
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
> libavutil/common.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/libavutil/common.h b/libavutil/common.h
> index b1203ad..e487218 100644
> --- a/libavutil/common.h
> +++ b/libavutil/common.h
> @@ -26,6 +26,10 @@
> #ifndef AVUTIL_COMMON_H
> #define AVUTIL_COMMON_H
>
> +#if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS) && !defined(UINT64_C)
> +#error missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS
> +#endif
Good idea, LGTM if reasonably tested.
--
FFmpeg = Fast & Foolish MultiPurpose Elected Geisha
More information about the ffmpeg-devel
mailing list