Skip to content

Commit

Permalink
fixing windows M_PI compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavransky committed Mar 18, 2019
1 parent 63c9910 commit d401c1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions keplertools/KeplerSTM_C/KeplerSTM_C.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
#define MAX(a,b) (((a)>(b))?(a):(b))
#endif

#if !defined(M_PI)
#define M_PI 3.14159265358979323846264338327950288 /* pi */
#endif

double DOT(double x1[], double x2[], int size) {
double res = 0;
int i;
Expand Down

0 comments on commit d401c1c

Please sign in to comment.