Skip to content

Commit

Permalink
Damn MSVC...
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Jul 11, 2014
1 parent b6398b5 commit 8c79964
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/base/include/mrpt/utils/bits.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ namespace mrpt
#ifdef RAD2DEG
#undef RAD2DEG
#endif
#if !defined(M_PI)
# define M_PI 3.14159265358979323846
#endif

/** Degrees to radians */
inline double DEG2RAD(const double x) { return x*M_PI/180.0; }
/** Degrees to radians */
Expand Down

0 comments on commit 8c79964

Please sign in to comment.