Skip to content

Commit 700f781

Browse files
authored
Add missing math constant includes
1 parent b8b291f commit 700f781

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tf2_geometry_msgs/test/test_tf2_geometry_msgs.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@
2929

3030
/** \author Wim Meeussen */
3131

32+
#ifdef _MSC_VER
33+
#ifndef _USE_MATH_DEFINES
34+
#define _USE_MATH_DEFINES
35+
#endif
36+
#endif
37+
38+
// To get M_PI, especially on Windows.
39+
#include <math.h>
3240

3341
#include <rclcpp/clock.hpp>
3442
#include <tf2_ros/transform_listener.h>

0 commit comments

Comments
 (0)