Skip to content

Commit

Permalink
Enable math constants on Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
gleichdick committed Feb 7, 2021
1 parent ac2e2f2 commit 6cc44b9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tf2_geometry_msgs/test/test_tf2_geometry_msgs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@

/** \author Wim Meeussen */

#ifdef _MSC_VER
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#endif

// To get M_PI, especially on Windows.
#include <math.h>

#include <rclcpp/clock.hpp>
#include <tf2_ros/transform_listener.h>
Expand Down

0 comments on commit 6cc44b9

Please sign in to comment.