From 2911855051052a514758de57fc147dec827bcdbc Mon Sep 17 00:00:00 2001 From: Rich Prohaska Date: Tue, 16 Apr 2013 23:57:48 -0400 Subject: [PATCH] use __restrict on linux to accomodate c++ programs. closes #1678 git-svn-id: file:///svn/toku/tokudb@11262 c7de825b-a66e-492c-adef-691d508d4ae1 --- linux/toku_pthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/toku_pthread.h b/linux/toku_pthread.h index 076afbb9859..2fc56de8fdb 100644 --- a/linux/toku_pthread.h +++ b/linux/toku_pthread.h @@ -20,7 +20,7 @@ typedef pthread_rwlock_t toku_pthread_rwlock_t; typedef pthread_rwlockattr_t toku_pthread_rwlockattr_t; static inline int -toku_pthread_rwlock_init(toku_pthread_rwlock_t *restrict rwlock, const toku_pthread_rwlockattr_t *restrict attr) { +toku_pthread_rwlock_init(toku_pthread_rwlock_t *__restrict rwlock, const toku_pthread_rwlockattr_t *__restrict attr) { return pthread_rwlock_init(rwlock, attr); }