From: Andre Noll Date: Fri, 12 Jul 2013 14:08:41 +0000 (+0200) Subject: opusdec: avoid __STDC_VERSION__ warning. X-Git-Tag: v0.4.13~19 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=d50aa36f089978eaba9bf6eb43a20f620b8d03a4 opusdec: avoid __STDC_VERSION__ warning. opusdec_filter.c indirectly includes opus_types.h which checks whether __STDC_VERSION__ >= 199901L. However, at least some gcc versions don't define __STDC_VERSION__ which results in warning: "__STDC_VERSION__" is not defined For example, this happens on Ubuntu lucid, which ships gcc-4.4.3. This patch gets rid of the warning by defining __STDC_VERSION__ if necessary prior to including the opus_types header. --- diff --git a/opusdec_filter.c b/opusdec_filter.c index 482108a6..9a767d72 100644 --- a/opusdec_filter.c +++ b/opusdec_filter.c @@ -35,6 +35,12 @@ * POSSIBILITY OF SUCH DAMAGE. */ + +/* Silence gcc warning caused by including opus.h */ +#if !defined(__STDC_VERSION__) +#define __STDC_VERSION__ 0 +#endif + #include #include #include