Define M_PI on sdl_joystick.cpp if undefined

This commit is contained in:
ts-korhonen
2021-12-15 00:50:46 +02:00
parent d570be1a50
commit f3b0a857c4

View File

@@ -14,6 +14,10 @@ static SDL_Joystick *sdl_joy[MAX_PLAT_JOYSTICKS];
#include <algorithm>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
void joystick_init() {
if (SDL_InitSubSystem(SDL_INIT_JOYSTICK) != 0) {
return;