summaryrefslogtreecommitdiff
path: root/ACE/ace/Time_Value.inl
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2008-11-15 19:54:05 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2008-11-15 19:54:05 +0000
commite652da4fccd74849dde11daab50ce6cb68dca215 (patch)
treecf3825f105f9c2c4fab23f57b9fa72909c3efc80 /ACE/ace/Time_Value.inl
parentd79ae7f5b829bbe87395d23aa63e50c7f43e9b41 (diff)
downloadATCD-e652da4fccd74849dde11daab50ce6cb68dca215.tar.gz
Sat Nov 15 19:53:30 UTC 2008 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/Time_Value.inl')
-rw-r--r--ACE/ace/Time_Value.inl12
1 files changed, 12 insertions, 0 deletions
diff --git a/ACE/ace/Time_Value.inl b/ACE/ace/Time_Value.inl
index b64f1fbd7bc..49788e3fd98 100644
--- a/ACE/ace/Time_Value.inl
+++ b/ACE/ace/Time_Value.inl
@@ -69,7 +69,19 @@ ACE_INLINE void
ACE_Time_Value::set (time_t sec, suseconds_t usec)
{
// ACE_OS_TRACE ("ACE_Time_Value::set");
+# if defined (_WIN32_WCE) && (_WIN32_WCE == 0x600) && !defined (_USE_32BIT_TIME_T)
+ // The WinCE 6.0 SDK ships with a timeval tv_sec member that uses long as type
+ // not time_t. This resolves in compilation warnings because time_t
+ // can be 64bit. Disable at this momemt the warning for just this method
+ // else we get a compile warnings each time this inline file is included
+ // this file.
+# pragma warning (push)
+# pragma warning (disable: 4244)
+# endif
this->tv_.tv_sec = sec;
+# if defined (_WIN32_WCE) && (_WIN32_WCE == 0x600) && !defined (_USE_32BIT_TIME_T)
+# pragma warning (pop)
+# endif
this->tv_.tv_usec = usec;
#if __GNUC__
if (__builtin_constant_p(sec) &&