From d80a7fe50aa5cde9a5e14fe9cbef8362cc9abe3e Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Thu, 15 Jan 2009 23:01:26 +0000 Subject: move NULL_IF_CONFIG_SMALL() definition into internal header Originally committed as revision 16619 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/internal.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libavutil/internal.h') diff --git a/libavutil/internal.h b/libavutil/internal.h index 78bfdd828a..ef1233d91c 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -302,4 +302,15 @@ static av_always_inline av_const float truncf(float x) } #endif /* HAVE_TRUNCF */ +/** + * Returns NULL if CONFIG_SMALL is true otherwise the argument + * without modifications, used to disable the definition of strings + * (for example AVCodec long_names). + */ +#if CONFIG_SMALL +# define NULL_IF_CONFIG_SMALL(x) NULL +#else +# define NULL_IF_CONFIG_SMALL(x) x +#endif + #endif /* AVUTIL_INTERNAL_H */ -- cgit v1.2.3