It seems that all of the other Dolphin-emu files that uses M_PI define it like this. (MatrixMath.h, DPL2Decode.cpp).