From c9b95709706773f76f841f1857b6ee99a977564c Mon Sep 17 00:00:00 2001
From: Jean-Marc Valin <jmvalin@amazon.com>
Date: Wed, 24 May 2023 12:58:05 -0400
Subject: [PATCH] Add missing include guards

---
 dnn/burg.h     | 5 +++++
 dnn/freq.h     | 5 +++++
 dnn/vec_neon.h | 5 +++++
 3 files changed, 15 insertions(+)

diff --git a/dnn/burg.h b/dnn/burg.h
index f46e5590d..f5998d2f7 100644
--- a/dnn/burg.h
+++ b/dnn/burg.h
@@ -25,6 +25,9 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 
+#ifndef BURG_H
+#define BURG_H
+
 
 float silk_burg_analysis(              /* O    returns residual energy                                     */
     float          A[],                /* O    prediction coefficients (length order)                      */
@@ -34,3 +37,5 @@ float silk_burg_analysis(              /* O    returns residual energy
     const int      nb_subfr,           /* I    number of subframes stacked in x                            */
     const int      D                   /* I    order                                                       */
 );
+
+#endif
diff --git a/dnn/freq.h b/dnn/freq.h
index 156f25c2f..c2252c8bf 100644
--- a/dnn/freq.h
+++ b/dnn/freq.h
@@ -24,6 +24,9 @@
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
+#ifndef FREQ_H
+#define FREQ_H
+
 #include "kiss_fft.h"
 
 #define LPC_ORDER 16
@@ -59,3 +62,5 @@ float lpc_from_bands(float *lpc, const float *Ex);
 float lpc_from_cepstrum(float *lpc, const float *cepstrum);
 void apply_window(float *x);
 void lpc_weighting(float *lpc, float gamma);
+
+#endif
diff --git a/dnn/vec_neon.h b/dnn/vec_neon.h
index f3a14cc5f..b21d38966 100644
--- a/dnn/vec_neon.h
+++ b/dnn/vec_neon.h
@@ -28,6 +28,9 @@
 */
 /* NEON support for ARM machines */
 
+#ifndef VEC_NEON_H
+#define VEC_NEON_H
+
 #include <arm_neon.h>
 
 #ifndef DISABLE_DOT_PROD
@@ -366,3 +369,5 @@ static inline void sparse_sgemv_accum8x4(float *_out, const qweight *w, int rows
       vst1q_f32(&_out[i+4], vmulq_f32(scale_1, vcvtq_f32_s32(acc1)));
    }
 }
+
+#endif
-- 
GitLab