Skip to content

Commit

Permalink
Fix M_PI undefined on Windows by including the correct header
Browse files Browse the repository at this point in the history
  • Loading branch information
nyue committed Jun 19, 2012
1 parent 4899be5 commit 4915a77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tools/Camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <math.h>
#endif //

class Vec3
{
Expand Down

0 comments on commit 4915a77

Please sign in to comment.