Skip to content

Commit

Permalink
add M_PI to defines.h
Browse files Browse the repository at this point in the history
  • Loading branch information
majbthrd committed Aug 3, 2023
1 parent 06d4c11 commit e0ed157
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
#ifndef PI
#define PI 3.141592654 /* mathematical constant */
#endif
#ifndef M_PI
#define M_PI 3.14159265358979323846f
#endif
#define TWO_PI 6.283185307 /* mathematical constant */
#define MAX_STR 2048 /* maximum string size */

Expand Down

0 comments on commit e0ed157

Please sign in to comment.