diff --git a/image_publisher/src/image_publisher.cpp b/image_publisher/src/image_publisher.cpp index 44a4a514..d217907c 100644 --- a/image_publisher/src/image_publisher.cpp +++ b/image_publisher/src/image_publisher.cpp @@ -31,6 +31,10 @@ // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. +// This define is added to support M_PI on Windows +#ifndef _USE_MATH_DEFINES +#define _USE_MATH_DEFINES +#endif #include #include #include