Commit 29118550 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

use __restrict on linux to accomodate c++ programs. closes #1678

git-svn-id: file:///svn/toku/tokudb@11262 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0982c11f
...@@ -20,7 +20,7 @@ typedef pthread_rwlock_t toku_pthread_rwlock_t; ...@@ -20,7 +20,7 @@ typedef pthread_rwlock_t toku_pthread_rwlock_t;
typedef pthread_rwlockattr_t toku_pthread_rwlockattr_t; typedef pthread_rwlockattr_t toku_pthread_rwlockattr_t;
static inline int 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); return pthread_rwlock_init(rwlock, attr);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment