#ifndef PI

 #define PI         (4*atan(1))

#endif


#define deg2rad(d) ((d)*PI/180)

#define rad2deg(r) ((r)*180/PI)



syntax highlighted by Code2HTML, v. 0.9.1