summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/UUID.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2002-10-28 06:25:27 +0000
committerMichi Henning <michi@zeroc.com>2002-10-28 06:25:27 +0000
commit382f7ebc87fc0d1056e257b83963d1903f7e8d27 (patch)
tree4c390abfa4a5d507ae044106619b5533232d2b14 /cpp/src/IceUtil/UUID.cpp
parentchanging Mutable Realms to ZeroC (diff)
downloadice-382f7ebc87fc0d1056e257b83963d1903f7e8d27.tar.bz2
ice-382f7ebc87fc0d1056e257b83963d1903f7e8d27.tar.xz
ice-382f7ebc87fc0d1056e257b83963d1903f7e8d27.zip
First shot at porting to VC++ 2002. Code compiles, but suffers random
crashes during the tests.
Diffstat (limited to 'cpp/src/IceUtil/UUID.cpp')
-rw-r--r--cpp/src/IceUtil/UUID.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/IceUtil/UUID.cpp b/cpp/src/IceUtil/UUID.cpp
index 9ec636057d9..7b2ea932377 100644
--- a/cpp/src/IceUtil/UUID.cpp
+++ b/cpp/src/IceUtil/UUID.cpp
@@ -28,8 +28,13 @@ IceUtil::generateUUID()
UUID uuid;
UuidCreate(&uuid);
+
+#if _MSC_VER == 1200
+ unsigned char* str;
+#else
+ unsigned short* str; // Type has changed for some reason in VC++ 2002 (but doc still
+#endif // says it's unsigned char *...)
- unsigned char* str;
UuidToString(&uuid, &str);
string result(reinterpret_cast<char*>(str));