summaryrefslogtreecommitdiff
path: root/ACE/ace/Log_Record.inl
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2006-10-20 12:08:53 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2006-10-20 12:08:53 +0000
commite7f2d1b78e0ae8ae085f4a8a093f02ddd3302fe9 (patch)
treef38691f5038c441e30344b9a541fbcb05f89fe49 /ACE/ace/Log_Record.inl
parentd66e7fa2ca598c90d945251b58ce733ff9ca7238 (diff)
downloadATCD-e7f2d1b78e0ae8ae085f4a8a093f02ddd3302fe9.tar.gz
Fri Oct 20 12:05:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/Log_Record.inl')
-rw-r--r--ACE/ace/Log_Record.inl4
1 files changed, 4 insertions, 0 deletions
diff --git a/ACE/ace/Log_Record.inl b/ACE/ace/Log_Record.inl
index b31af15384a..5824a038373 100644
--- a/ACE/ace/Log_Record.inl
+++ b/ACE/ace/Log_Record.inl
@@ -20,6 +20,7 @@ ACE_INLINE void
ACE_Log_Record::encode (void)
{
ACE_TRACE ("ACE_Log_Record::encode");
+#if !defined (ACE_LACKS_HTONL)
this->length_ = htonl (this->length_);
this->type_ = htonl (this->type_);
// Make sure we don't enclose the sec() and usec() fields until
@@ -27,12 +28,14 @@ ACE_Log_Record::encode (void)
this->secs_ = htonl (this->secs_);
this->usecs_ = htonl (this->usecs_);
this->pid_ = htonl (this->pid_);
+#endif /* ACE_LACKS_HTONL */
}
ACE_INLINE void
ACE_Log_Record::decode (void)
{
ACE_TRACE ("ACE_Log_Record::decode");
+#if !defined (ACE_LACKS_NTOHL)
ACE_Time_Value tv (ntohl (this->secs_),
ntohl (this->usecs_));
@@ -41,6 +44,7 @@ ACE_Log_Record::decode (void)
this->type_ = ntohl (this->type_);
this->pid_ = ntohl (this->pid_);
this->length_ = ntohl (this->length_);
+#endif /* ACE_LACKS_NTOHL */
}
ACE_INLINE ACE_UINT32