diff options
author | Edward Thomson <ethomson@github.com> | 2016-11-18 18:30:20 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-11-18 19:00:14 +0000 |
commit | 6367c58cd482288e5cd476bd48d0d4406e3bac7b (patch) | |
tree | eac23f7bcb47e66d2829625f17db4f64fcbc353f /tests/clar_libgit2.h | |
parent | 6a05c7a0efd60dce3e99673c3256bf60516693ed (diff) | |
download | libgit2-ethomson/clar_threads.tar.gz |
tests: handle life without threadsethomson/clar_threads
Diffstat (limited to 'tests/clar_libgit2.h')
-rw-r--r-- | tests/clar_libgit2.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/clar_libgit2.h b/tests/clar_libgit2.h index 1d8d4a50b..663d1362a 100644 --- a/tests/clar_libgit2.h +++ b/tests/clar_libgit2.h @@ -59,7 +59,11 @@ typedef struct { char error_msg[4096]; } cl_git_thread_err; -#define cl_git_thread_pass(threaderr, expr) cl_git_thread_pass_(threaderr, (expr), __FILE__, __LINE__) +#ifdef GIT_THREADS +# define cl_git_thread_pass(threaderr, expr) cl_git_thread_pass_(threaderr, (expr), __FILE__, __LINE__) +#else +# define cl_git_thread_pass(threaderr, expr) cl_git_pass(expr) +#endif #define cl_git_thread_pass_(__threaderr, __expr, __file, __line) do { \ giterr_clear(); \ |