What is the problem with patch: http://source.winehq.org/patches/data/97500
M_PI is never used in D3DX (moreover it is deprecated in C99)
Nozomi