summaryrefslogtreecommitdiff
path: root/ace/OS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/OS.cpp')
-rw-r--r--ace/OS.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ace/OS.cpp b/ace/OS.cpp
index 7a2ce2b44dc..5d9babf5367 100644
--- a/ace/OS.cpp
+++ b/ace/OS.cpp
@@ -294,7 +294,7 @@ ACE_Time_Value::operator -- (void)
//
// In the beginning (Jan. 1, 1601), there was no time and no computer.
// And Bill said: "Let there be time," and there was time....
-# if defined (ghs)
+# if defined (ACE_LACKS_LONGLONG_T)
const ACE_U_LongLong ACE_Time_Value::FILETIME_to_timval_skew =
ACE_U_LongLong (0xd53e8000, 0x19db1de);
# else
@@ -313,7 +313,7 @@ ACE_Time_Value::ACE_Time_Value (const FILETIME &file_time)
void ACE_Time_Value::set (const FILETIME &file_time)
{
// Initializes the ACE_Time_Value object from a Win32 FILETIME
-#if defined (ghs)
+#if defined (ACE_LACKS_LONGLONG_T)
ACE_U_LongLong LL_100ns(file_time.dwLowDateTime, file_time.dwHighDateTime);
LL_100ns -= ACE_Time_Value::FILETIME_to_timval_skew;
// Convert 100ns units to seconds;
@@ -332,7 +332,7 @@ void ACE_Time_Value::set (const FILETIME &file_time)
this->tv_.tv_sec = (long) (_100ns.QuadPart / (10000 * 1000));
// Convert remainder to microseconds;
this->tv_.tv_usec = (long) ((_100ns.QuadPart % (10000 * 1000)) / 10);
-#endif // ghs
+#endif // ACE_LACKS_LONGLONG_T
}
// Returns the value of the object as a Win32 FILETIME.
@@ -342,7 +342,7 @@ ACE_Time_Value::operator FILETIME () const
FILETIME file_time;
ACE_OS_TRACE ("ACE_Time_Value::operator FILETIME");
-#if defined (ghs)
+#if defined (ACE_LACKS_LONGLONG_T)
ACE_U_LongLong LL_sec(this->tv_.tv_sec);
ACE_U_LongLong LL_usec(this->tv_.tv_usec);
ACE_U_LongLong LL_100ns = LL_sec * (ACE_UINT32)(10000 * 1000) +
@@ -358,7 +358,7 @@ ACE_Time_Value::operator FILETIME () const
file_time.dwLowDateTime = _100ns.LowPart;
file_time.dwHighDateTime = _100ns.HighPart;
-#endif //ghs
+#endif //ACE_LACKS_LONGLONG_T
return file_time;
}