Skip to content

Commit 1ddfa7b

Browse files
committed
fix
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
1 parent 696c074 commit 1ddfa7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/tier4_autoware_utils/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ ament_auto_add_library(tier4_autoware_utils SHARED
1616
src/ros/marker_helper.cpp
1717
src/ros/logger_level_configure.cpp
1818
src/system/backtrace.cpp
19-
include/tier4_autoware_utils/ros/published_time_publisher.hpp
2019
)
2120

2221
if(BUILD_TESTING)

common/tier4_autoware_utils/include/tier4_autoware_utils/ros/published_time_publisher.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <autoware_internal_msgs/msg/published_time.hpp>
2121
#include <std_msgs/msg/header.hpp>
2222

23+
#include <cstring>
2324
#include <functional>
2425
#include <map>
2526
#include <string>
@@ -91,7 +92,7 @@ class PublishedTimePublisher
9192
{
9293
bool operator()(const rmw_gid_t & lhs, const rmw_gid_t & rhs) const
9394
{
94-
return memcmp(lhs.data, rhs.data, RMW_GID_STORAGE_SIZE) < 0;
95+
return std::memcmp(lhs.data, rhs.data, RMW_GID_STORAGE_SIZE) < 0;
9596
}
9697
};
9798

0 commit comments

Comments
 (0)