Sprite: Define M_PI manually

Apparently (older?) mingw-w64 with C++11 enabled doesn't have it.
This commit is contained in:
Jonas Kulla 2019-05-18 16:21:21 +02:00
parent d6b477b887
commit 6fa5b8c856
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@
#include "quadarray.h" #include "quadarray.h"
#include <math.h> #include <math.h>
#ifndef M_PI
# define M_PI 3.14159265358979323846
#endif
#include <SDL_rect.h> #include <SDL_rect.h>