Skip to content

Commit

Permalink
MAINT: Define M_PI to avoid issues with compilation on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pastewka committed Jul 16, 2024
1 parent f1f8fa3 commit ca374a0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions c/angle_distribution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@
#define NPY_NO_DEPRECATED_API NPY_2_0_API_VERSION
#include <numpy/arrayobject.h>

#define _USE_MATH_DEFINES
#include <cmath>

#include "angle_distribution.h"

#define M_PI ((double)3.14159265358979323846) /* pi */

/*
* Compute bond angle distribution
*/
Expand Down

0 comments on commit ca374a0

Please sign in to comment.