[FFmpeg-devel] [PATCH 1/2] avutil/common: error out with clear message if __STDC_CONSTANT_MACROS is not defined with c++
Michael Niedermayer
michaelni at gmx.at
Tue Nov 5 22:29:32 CET 2013
On Tue, Nov 05, 2013 at 12:28:32PM +0100, Stefano Sabatini wrote:
> 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.
tested a bit
applied
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131105/39969275/attachment.asc>
More information about the ffmpeg-devel
mailing list