Skip to content

Commit

Permalink
Remove warning for redefinition of M_PIf
Browse files Browse the repository at this point in the history
This is sometimes defined in math.h.
  • Loading branch information
joeramsay committed Dec 7, 2023
1 parent 7d0b37d commit e10752b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@
#define L2Lf 1.428606765330187045e-06f

#define R_LN2f 1.442695040888963407359924681001892137426645954152985934135449406931f
#define M_PIf ((float)M_PI)
#ifndef M_PIf
# define M_PIf ((float)M_PI)
#endif

//

Expand Down

0 comments on commit e10752b

Please sign in to comment.