#include <openlibm_math.h> // Included to fix mesa issues #define M_PI_2 (M_PI/2.0) #define M_PI_4 (M_PI/4.0)