Use __restrict rather than restrict.
This commit is contained in:
parent
87704ea339
commit
bca042dfeb
@ -1319,8 +1319,8 @@ malloc_printf(const char *format, ...)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef JEMALLOC_LAZY_LOCK
|
#ifdef JEMALLOC_LAZY_LOCK
|
||||||
int (*pthread_create_fptr)(pthread_t *restrict, const pthread_attr_t *,
|
int (*pthread_create_fptr)(pthread_t *__restrict, const pthread_attr_t *,
|
||||||
void *(*)(void *), void *restrict);
|
void *(*)(void *), void *__restrict);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
get_pthread_create_fptr(void)
|
get_pthread_create_fptr(void)
|
||||||
@ -1336,8 +1336,9 @@ get_pthread_create_fptr(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
pthread_create(pthread_t *restrict thread, const pthread_attr_t *restrict attr,
|
pthread_create(pthread_t *__restrict thread,
|
||||||
void *(*start_routine)(void *), void *restrict arg)
|
const pthread_attr_t *__restrict attr, void *(*start_routine)(void *),
|
||||||
|
void *__restrict arg)
|
||||||
{
|
{
|
||||||
static pthread_once_t once_control = PTHREAD_ONCE_INIT;
|
static pthread_once_t once_control = PTHREAD_ONCE_INIT;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user