Skip to content

Commit

Permalink
fix M_PI
Browse files Browse the repository at this point in the history
  • Loading branch information
district10 committed Nov 29, 2023
1 parent 54af717 commit d212b86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/nano_fmm/polyline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
#include "nano_fmm/types.hpp"
#include <optional>

#define _USE_MATH_DEFINES
#include <cmath>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

namespace nano_fmm
{
Expand Down
5 changes: 3 additions & 2 deletions src/nano_fmm/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
#include "nano_fmm/types.hpp"
#include <optional>

#define _USE_MATH_DEFINES
#include <cmath>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

namespace nano_fmm
{
Expand Down

0 comments on commit d212b86

Please sign in to comment.