Applied a fix to qualify "UUID" with the lldb_private namespace to fix
build issues on MinGW.
llvm-svn: 124888
diff --git a/lldb/source/Core/UUID.cpp b/lldb/source/Core/UUID.cpp
index 0394141..2d17eb6 100644
--- a/lldb/source/Core/UUID.cpp
+++ b/lldb/source/Core/UUID.cpp
@@ -18,7 +18,7 @@
// Project includes
#include "lldb/Core/Stream.h"
-using namespace lldb_private;
+namespace lldb_private {
UUID::UUID()
{
@@ -175,40 +175,40 @@
return 0;
}
-
-
-bool
-lldb_private::operator == (const UUID &lhs, const UUID &rhs)
-{
- return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), UUID::GetByteSize()) == 0;
}
bool
-lldb_private::operator != (const UUID &lhs, const UUID &rhs)
+lldb_private::operator == (const lldb_private::UUID &lhs, const lldb_private::UUID &rhs)
+{
+ return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), lldb_private::UUID::GetByteSize()) == 0;
+}
+
+bool
+lldb_private::operator != (const lldb_private::UUID &lhs, const lldb_private::UUID &rhs)
{
return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), UUID::GetByteSize()) != 0;
}
bool
-lldb_private::operator < (const UUID &lhs, const UUID &rhs)
+lldb_private::operator < (const lldb_private::UUID &lhs, const lldb_private::UUID &rhs)
{
- return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), UUID::GetByteSize()) < 0;
+ return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), lldb_private::UUID::GetByteSize()) < 0;
}
bool
-lldb_private::operator <= (const UUID &lhs, const UUID &rhs)
+lldb_private::operator <= (const lldb_private::UUID &lhs, const lldb_private::UUID &rhs)
{
- return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), UUID::GetByteSize()) <= 0;
+ return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), lldb_private::UUID::GetByteSize()) <= 0;
}
bool
-lldb_private::operator > (const UUID &lhs, const UUID &rhs)
+lldb_private::operator > (const lldb_private::UUID &lhs, const lldb_private::UUID &rhs)
{
- return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), UUID::GetByteSize()) > 0;
+ return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), lldb_private::UUID::GetByteSize()) > 0;
}
bool
-lldb_private::operator >= (const UUID &lhs, const UUID &rhs)
+lldb_private::operator >= (const lldb_private::UUID &lhs, const lldb_private::UUID &rhs)
{
- return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), UUID::GetByteSize()) >= 0;
+ return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), lldb_private::UUID::GetByteSize()) >= 0;
}