From dff71be00b07d293b318fede3167b3c48f2270b8 Mon Sep 17 00:00:00 2001 From: Marc Laukien Date: Sun, 22 Sep 2002 15:57:38 +0000 Subject: dos2unix --- cpp/src/IceUtil/UUID.cpp | 100 +++++++++++++++++++++++------------------------ 1 file changed, 50 insertions(+), 50 deletions(-) (limited to 'cpp/src/IceUtil/UUID.cpp') diff --git a/cpp/src/IceUtil/UUID.cpp b/cpp/src/IceUtil/UUID.cpp index 21bab48af46..95ddb2a1d38 100644 --- a/cpp/src/IceUtil/UUID.cpp +++ b/cpp/src/IceUtil/UUID.cpp @@ -1,50 +1,50 @@ -// ********************************************************************** -// -// Copyright (c) 2001 -// Mutable Realms, Inc. -// Huntsville, AL, USA -// -// All Rights Reserved -// -// ********************************************************************** - -#include - -#ifdef _WIN32 -# include -#else -extern "C" // uuid/uuid.h seems to miss extern "C" declarations. -{ -# include -} -#endif - -using namespace std; - -string -IceUtil::generateUUID() -{ -#ifdef _WIN32 - - UUID uuid; - UuidCreate(&uuid); - - unsigned char* str; - UuidToString(&uuid, &str); - - string result(reinterpret_cast(str)); - RpcStringFree(&str); - return result; - -#else - - uuid_t uuid; - uuid_generate(uuid); - - char str[37]; - uuid_unparse(uuid, str); - - return str; - -#endif -} +// ********************************************************************** +// +// Copyright (c) 2001 +// Mutable Realms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#include + +#ifdef _WIN32 +# include +#else +extern "C" // uuid/uuid.h seems to miss extern "C" declarations. +{ +# include +} +#endif + +using namespace std; + +string +IceUtil::generateUUID() +{ +#ifdef _WIN32 + + UUID uuid; + UuidCreate(&uuid); + + unsigned char* str; + UuidToString(&uuid, &str); + + string result(reinterpret_cast(str)); + RpcStringFree(&str); + return result; + +#else + + uuid_t uuid; + uuid_generate(uuid); + + char str[37]; + uuid_unparse(uuid, str); + + return str; + +#endif +} -- cgit v1.2.3