diff options
Diffstat (limited to 'ACE/ace/UUID.cpp')
-rw-r--r-- | ACE/ace/UUID.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ACE/ace/UUID.cpp b/ACE/ace/UUID.cpp index b6454dd9db8..62fbed45e4e 100644 --- a/ACE/ace/UUID.cpp +++ b/ACE/ace/UUID.cpp @@ -469,7 +469,14 @@ namespace ACE_Utils void UUID_Generator::get_systemtime (UUID_time & timestamp) { - const UUID_time timeOffset = ACE_UINT64_LITERAL (0x1B21DD213814000); + const UUID_time timeOffset = +#if defined (ACE_LACKS_UNSIGNEDLONGLONG_T) + ACE_U_LongLong (0x1B21DD213814000); +#elif defined (ACE_LACKS_LONGLONG_T) + ACE_U_LongLong (0x13814000u, 0x1B21DD2u); +#else + ACE_UINT64_LITERAL (0x1B21DD213814000); +#endif /* ACE_LACKS_LONG_LONG_T */ /// Get the time of day, convert to 100ns ticks then add the offset. ACE_Time_Value now = ACE_OS::gettimeofday(); |