From 4915a77523e2f68402f7a2c6fb3de8860f120d8e Mon Sep 17 00:00:00 2001 From: Nicholas Yue Date: Tue, 19 Jun 2012 14:41:12 +1000 Subject: [PATCH] Fix M_PI undefined on Windows by including the correct header --- src/tools/Camera.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/Camera.h b/src/tools/Camera.h index 1189a5af..3d494031 100644 --- a/src/tools/Camera.h +++ b/src/tools/Camera.h @@ -36,6 +36,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. #ifndef _Camera_h_ #define _Camera_h_ +#ifdef WIN32 +#define _USE_MATH_DEFINES +#include +#endif // class Vec3 {