From d50aa36f089978eaba9bf6eb43a20f620b8d03a4 Mon Sep 17 00:00:00 2001
From: Andre Noll <maan@systemlinux.org>
Date: Fri, 12 Jul 2013 16:08:41 +0200
Subject: [PATCH] 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.
---
 opusdec_filter.c | 6 ++++++
 1 file changed, 6 insertions(+)

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 <regex.h>
 #include <opus/opus.h>
 #include <opus/opus_multistream.h>
-- 
2.39.5