diff options
Diffstat (limited to 'include/llvm/Support/MutexGuard.h')
-rw-r--r-- | include/llvm/Support/MutexGuard.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/MutexGuard.h b/include/llvm/Support/MutexGuard.h index 48428b8cde..427e0c3a22 100644 --- a/include/llvm/Support/MutexGuard.h +++ b/include/llvm/Support/MutexGuard.h @@ -17,7 +17,9 @@ #ifndef SUPPORT_THREADSUPPORT_H #define SUPPORT_THREADSUPPORT_H -#if @HAVE_PTHREAD_MUTEX_LOCK@ +#undef HAVE_PTHREAD_MUTEX_LOCK + +#ifdef HAVE_PTHREAD_MUTEX_LOCK #include "llvm/Support/ThreadSupport-PThreads.h" #else #include "llvm/Support/ThreadSupport-NoSupport.h" |