diff options
author | Russell Belfer <rb@github.com> | 2013-08-26 14:56:31 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-08-26 14:56:31 -0700 |
commit | 430953417f74dfcdbe030bafc069e1c07edceeb6 (patch) | |
tree | b8276cc0ec5e481307202ec00ef7abcade6e9d98 /src/thread-utils.h | |
parent | 44d655318661affa2feb51e9d6d533bb16d7f2b5 (diff) | |
download | libgit2-430953417f74dfcdbe030bafc069e1c07edceeb6.tar.gz |
Load SRWLock APIs at runtime
This loads SRWLock APIs at runtime and in their absence (i.e. on
Windows before Vista) falls back on a regular CRITICAL_SECTION
that will not permit concurrent readers.
Diffstat (limited to 'src/thread-utils.h')
-rw-r--r-- | src/thread-utils.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/thread-utils.h b/src/thread-utils.h index 371dc0b26..914c1357d 100644 --- a/src/thread-utils.h +++ b/src/thread-utils.h @@ -40,10 +40,6 @@ typedef git_atomic git_atomic_ssize; #ifdef GIT_THREADS -#if defined(GIT_WIN32) && _WIN32_WINNT < 0x0600 -# error "Unsupported Windows version for thread support" -#endif - #define git_thread pthread_t #define git_thread_create(thread, attr, start_routine, arg) \ pthread_create(thread, attr, start_routine, arg) |