added #define for MSVC

This commit is contained in:
Mason Green 2011-07-02 09:26:45 -04:00
parent 56510a42f7
commit b62d618841
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@
#ifndef UTILS_H
#define UTILS_H
// Otherwise #defines like M_PI are undeclared under Visual Studio
#define _USE_MATH_DEFINES
#include <exception>
#include <math.h>