diff --git a/source/code/sago/SagoSprite.cpp b/source/code/sago/SagoSprite.cpp index 7b6297e..c116e3e 100644 --- a/source/code/sago/SagoSprite.cpp +++ b/source/code/sago/SagoSprite.cpp @@ -25,6 +25,11 @@ SOFTWARE. #include "SagoSprite.hpp" #include +#ifndef M_PI +// M_PI is a custom extension that most C++ toolchains provide. Out Windows compiler does not provide it. +# define M_PI 3.14159265358979323846 +#endif + namespace sago { struct SagoSprite::SagoSpriteData { @@ -168,4 +173,4 @@ int SagoSprite::GetHeight() const { return data->imgCord.h; } -} //namespace sago \ No newline at end of file +} //namespace sago