diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-10-16 08:20:31 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-10-16 08:20:31 +0000 |
commit | 5e2d3776a314629680921abd1d55d89d95a2da90 (patch) | |
tree | 86524a10e4ad7c9d05e8006cb67f822f283c2a1a /lib/interception/interception.h | |
parent | e852e41d345c4be4ca28962cbc6c6d59717759c7 (diff) |
Make some pthread_mutex_* and pthread_cond_* interceptors common.
Reviewers: eugenis, dvyukov
Reviewed By: dvyukov
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1937
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/interception/interception.h')
-rw-r--r-- | lib/interception/interception.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/interception/interception.h b/lib/interception/interception.h index cc8d7b0d2..baddd6c13 100644 --- a/lib/interception/interception.h +++ b/lib/interception/interception.h @@ -238,12 +238,18 @@ typedef unsigned long uptr; // NOLINT #if defined(__linux__) # include "interception_linux.h" # define INTERCEPT_FUNCTION(func) INTERCEPT_FUNCTION_LINUX(func) +# define INTERCEPT_FUNCTION_VER(func, symver) \ + INTERCEPT_FUNCTION_VER_LINUX(func, symver) #elif defined(__APPLE__) # include "interception_mac.h" # define INTERCEPT_FUNCTION(func) INTERCEPT_FUNCTION_MAC(func) +# define INTERCEPT_FUNCTION_VER(func, symver) \ + INTERCEPT_FUNCTION_VER_MAC(func, symver) #else // defined(_WIN32) # include "interception_win.h" # define INTERCEPT_FUNCTION(func) INTERCEPT_FUNCTION_WIN(func) +# define INTERCEPT_FUNCTION_VER(func, symver) \ + INTERCEPT_FUNCTION_VER_WIN(func, symver) #endif #undef INCLUDED_FROM_INTERCEPTION_LIB |