Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e42223e

Browse files
committed
removed M_PI warning
svn path=/trunk/matplotlib/; revision=2765
1 parent 1d3432b commit e42223e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/_backend_agg.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,15 @@
3838
#endif
3939
#endif
4040

41+
#ifndef M_PI
4142
#define M_PI 3.14159265358979323846
43+
#endif
44+
#ifndef M_PI_4
4245
#define M_PI_4 0.785398163397448309616
46+
#endif
47+
#ifndef M_PI_2
4348
#define M_PI_2 1.57079632679489661923
49+
#endif
4450

4551
/* ------------ RendererAgg methods ------------- */
4652

0 commit comments

Comments
 (0)