Build system changes to support mingw build target
[ardour.git] / libs / pbd / uuid.cc
index 0ffeca23cba4418973a737c04ae1b4791aa58b91..1a988b9820324ed55e4f40fca1fd6cd742a91d98 100644 (file)
@@ -25,14 +25,13 @@ using namespace PBD;
 UUID&
 UUID::operator= (std::string const & str)
 {
-       uuid_parse (str.c_str(), id);
+        boost::uuids::string_generator gen;
+        *((boost::uuids::uuid*) this) = gen (str);
        return *this;
 }
 
 std::string
 UUID::to_s () const
 {
-       char buf[37];
-       uuid_unparse (id, buf);
-       return std::string (buf);
+        return std::string ((const char*) data, size());
 }