From de0b5324b687c9e9a33722d84151de08ee7f82a9 Mon Sep 17 00:00:00 2001 From: Gregory Maxwell Date: Wed, 18 Jul 2012 12:12:35 -0400 Subject: 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. --- celt/vq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'celt/vq.c') 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; -- cgit v1.2.3