Win32 support for Mutex class.
[oota-llvm.git] / lib / System / Mutex.cpp
index 2a1519769134a4039d7aecec1148569f31113954..4ec5af302f935fd47c09b8235e640f1e83416d3d 100644 (file)
 #include "llvm/System/Mutex.h"
 #include "llvm/Config/config.h"
 
-namespace llvm {
-using namespace sys;
-
 //===----------------------------------------------------------------------===//
 //=== WARNING: Implementation here must contain only TRULY operating system
 //===          independent code.
 //===----------------------------------------------------------------------===//
 
 #if defined(HAVE_PTHREAD_H) && defined(HAVE_PTHREAD_MUTEX_LOCK)
+
+namespace llvm {
+using namespace sys;
+
 #include <cassert>
 #include <pthread.h>
 #include <stdlib.h>
@@ -132,6 +133,7 @@ Mutex::tryacquire()
 }
 
 }
+
 #elif defined(LLVM_ON_UNIX)
 #include "Unix/Mutex.inc"
 #elif defined( LLVM_ON_WIN32)