From b1c1eae90796d6cf7e8fe05f86e2dbb914b4db8b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 29 Apr 2014 23:03:58 +0200 Subject: [PATCH] Fix warnings re: redefining ALIGNED --- audio/filters/echo.c | 2 ++ audio/filters/iir.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/audio/filters/echo.c b/audio/filters/echo.c index 4d040a4c9d..320946c9c1 100644 --- a/audio/filters/echo.c +++ b/audio/filters/echo.c @@ -24,11 +24,13 @@ // 4 source echo. +#ifndef ALIGNED #ifdef __GNUC__ #define ALIGNED __attribute__((aligned(16))) #else #define ALIGNED #endif +#endif #ifndef min #define min(a, b) (((a) < (b)) ? (a) : (b)) diff --git a/audio/filters/iir.c b/audio/filters/iir.c index d07ac9470e..cfcfef2df6 100644 --- a/audio/filters/iir.c +++ b/audio/filters/iir.c @@ -31,11 +31,13 @@ #define M_PI 3.1415926535897932384626433832795 #endif +#ifndef ALIGNED #ifdef __GNUC__ #define ALIGNED __attribute__((aligned(16))); #else #define ALIGNED #endif +#endif #define sqr(a) ((a) * (a))