aboutsummaryrefslogtreecommitdiff
path: root/celt/vq.c
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2012-07-18 12:12:35 -0400
committerGregory Maxwell <greg@xiph.org>2012-07-18 12:12:35 -0400
commitde0b5324b687c9e9a33722d84151de08ee7f82a9 (patch)
tree4d80ef9939e11bf1796dc50949c9790cb77930c9 /celt/vq.c
parent31e8a845923ace3cb818dd12839188cf3f29af80 (diff)
downloadlibopus-de0b5324b687c9e9a33722d84151de08ee7f82a9.tar.gz
Replace C99 restrict keyword with OPUS_RESTRICT.
We had previously advised people to -Drestrict on non-C99 compilers, but this creates problems for some of the MSVC headers. Instead this just uses a macro and defines it sanely.
Diffstat (limited to 'celt/vq.c')
-rw-r--r--celt/vq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/vq.c b/celt/vq.c
index a2a4fd36..98a0f36c 100644
--- a/celt/vq.c
+++ b/celt/vq.c
@@ -109,7 +109,7 @@ static void exp_rotation(celt_norm *X, int len, int dir, int stride, int K, int
/** Takes the pitch vector and the decoded residual vector, computes the gain
that will give ||p+g*y||=1 and mixes the residual with the pitch. */
-static void normalise_residual(int * restrict iy, celt_norm * restrict X,
+static void normalise_residual(int * OPUS_RESTRICT iy, celt_norm * OPUS_RESTRICT X,
int N, opus_val32 Ryy, opus_val16 gain)
{
int i;