From bca042dfeb6a5a668a8c0b275cf4faa7e888290a Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Tue, 29 Dec 2009 00:09:15 -0800 Subject: [PATCH] Use __restrict rather than restrict. --- jemalloc/src/jemalloc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jemalloc/src/jemalloc.c b/jemalloc/src/jemalloc.c index 90001f4c..f780e75a 100644 --- a/jemalloc/src/jemalloc.c +++ b/jemalloc/src/jemalloc.c @@ -1319,8 +1319,8 @@ malloc_printf(const char *format, ...) */ #ifdef JEMALLOC_LAZY_LOCK -int (*pthread_create_fptr)(pthread_t *restrict, const pthread_attr_t *, - void *(*)(void *), void *restrict); +int (*pthread_create_fptr)(pthread_t *__restrict, const pthread_attr_t *, + void *(*)(void *), void *__restrict); static void get_pthread_create_fptr(void) @@ -1336,8 +1336,9 @@ get_pthread_create_fptr(void) } int -pthread_create(pthread_t *restrict thread, const pthread_attr_t *restrict attr, - void *(*start_routine)(void *), void *restrict arg) +pthread_create(pthread_t *__restrict thread, + const pthread_attr_t *__restrict attr, void *(*start_routine)(void *), + void *__restrict arg) { static pthread_once_t once_control = PTHREAD_ONCE_INIT;