Skip to content

Commit

Permalink
Fix safety profile
Browse files Browse the repository at this point in the history
  • Loading branch information
jrw972 committed Jan 24, 2023
1 parent 3be4483 commit 47efeb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dds/DCPS/Time_Helper.h
Expand Up @@ -109,8 +109,10 @@ DDS::Duration_t operator-(const MonotonicTime_t& t1, const MonotonicTime_t& t2);
ACE_INLINE OpenDDS_Dcps_Export
bool operator<(const MonotonicTime_t& t1, const MonotonicTime_t& t2);

#ifndef OPENDDS_SAFETY_PROFILE
ACE_INLINE OpenDDS_Dcps_Export
bool operator==(const MonotonicTime_t& t1, const MonotonicTime_t& t2);
#endif

ACE_INLINE OpenDDS_Dcps_Export
ACE_UINT32 uint32_fractional_seconds_to_nanoseconds(ACE_UINT32 fraction);
Expand Down
2 changes: 2 additions & 0 deletions dds/DCPS/Time_Helper.inl
Expand Up @@ -166,11 +166,13 @@ operator<(const MonotonicTime_t& t1, const MonotonicTime_t& t2)
return t1.sec < t2.sec || (t1.sec == t2.sec && t1.nanosec < t2.nanosec);
}

#ifndef OPENDDS_SAFETY_PROFILE
ACE_INLINE bool
operator==(const MonotonicTime_t& t1, const MonotonicTime_t& t2)
{
return t1.sec == t2.sec && t1.nanosec == t2.nanosec;
}
#endif

ACE_INLINE
ACE_Time_Value time_to_time_value(const DDS::Time_t& t)
Expand Down

0 comments on commit 47efeb4

Please sign in to comment.