From bfa83da572bc9c677ca05f1e87adf68652b5b18f Mon Sep 17 00:00:00 2001 From: Fastigium Date: Sun, 13 Mar 2016 15:05:40 +0100 Subject: [PATCH] Make lb302 include math.h so we can switch it to C++11 M_PI is no longer defined by default in C++11, but lb302.cpp needs it. Therefore, before switching to C++11, we add an include. --- plugins/lb302/lb302.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/lb302/lb302.cpp b/plugins/lb302/lb302.cpp index 85320d21d..399c01f54 100644 --- a/plugins/lb302/lb302.cpp +++ b/plugins/lb302/lb302.cpp @@ -28,6 +28,10 @@ * */ +// Need to include this first to ensure we get M_PI in MinGW with C++11 +#define _USE_MATH_DEFINES +#include + #include "lb302.h" #include "AutomatableButton.h" #include "Engine.h"