From d8affa3dc5267c5da120ac09e14a81e0afed8fe8 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 1 May 2016 09:00:08 -0700 Subject: [PATCH] =?utf8?q?Use=20=E2=80=98T=20*restrict=E2=80=99=20proto,?= =?utf8?q?=20not=20=E2=80=98T[restrict]=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * src/fns.c (sort_vector_copy): Use a different way to attempt to work around GCC 3.0-and-earlier incompatibility with C99, one that does not have problems with modern non-GCC compilers. --- src/fns.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/fns.c b/src/fns.c index a65863ce0e8..9bbbb6d7b71 100644 --- a/src/fns.c +++ b/src/fns.c @@ -32,13 +32,8 @@ along with GNU Emacs. If not, see . */ #include "intervals.h" #include "window.h" -#if __GNUC__ >= 4 static void sort_vector_copy (Lisp_Object, ptrdiff_t, - Lisp_Object [restrict], Lisp_Object [restrict]); -#else -static void sort_vector_copy (Lisp_Object, ptrdiff_t, - Lisp_Object [], Lisp_Object []); -#endif + Lisp_Object *restrict, Lisp_Object *restrict); static bool internal_equal (Lisp_Object, Lisp_Object, int, bool, Lisp_Object); DEFUN ("identity", Fidentity, Sidentity, 1, 1, 0, -- 2.39.2