diff options
| author | Paul Eggert | 2016-05-01 09:00:08 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-05-01 09:01:06 -0700 |
| commit | d8affa3dc5267c5da120ac09e14a81e0afed8fe8 (patch) | |
| tree | 37684a31c7ad5f9f58dc72ccb19009c67376b546 /src | |
| parent | d38d2a845a8e44443e8d995c0ba79211e6934400 (diff) | |
| download | emacs-d8affa3dc5267c5da120ac09e14a81e0afed8fe8.tar.gz emacs-d8affa3dc5267c5da120ac09e14a81e0afed8fe8.zip | |
Use ‘T *restrict’ proto, not ‘T[restrict]’
* 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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 7 |
1 files changed, 1 insertions, 6 deletions
| @@ -32,13 +32,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 32 | #include "intervals.h" | 32 | #include "intervals.h" |
| 33 | #include "window.h" | 33 | #include "window.h" |
| 34 | 34 | ||
| 35 | #if __GNUC__ >= 4 | ||
| 36 | static void sort_vector_copy (Lisp_Object, ptrdiff_t, | 35 | static void sort_vector_copy (Lisp_Object, ptrdiff_t, |
| 37 | Lisp_Object [restrict], Lisp_Object [restrict]); | 36 | Lisp_Object *restrict, Lisp_Object *restrict); |
| 38 | #else | ||
| 39 | static void sort_vector_copy (Lisp_Object, ptrdiff_t, | ||
| 40 | Lisp_Object [], Lisp_Object []); | ||
| 41 | #endif | ||
| 42 | static bool internal_equal (Lisp_Object, Lisp_Object, int, bool, Lisp_Object); | 37 | static bool internal_equal (Lisp_Object, Lisp_Object, int, bool, Lisp_Object); |
| 43 | 38 | ||
| 44 | DEFUN ("identity", Fidentity, Sidentity, 1, 1, 0, | 39 | DEFUN ("identity", Fidentity, Sidentity, 1, 1, 0, |