Skip to content

Commit 48bd6d0

Browse files
committed
Fixed M_PI issue
1 parent 35905c9 commit 48bd6d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/descriptors/steric.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
#include <string.h>
1515
#include <stdlib.h>
1616
#include <math.h>
17+
18+
/* M_PI is not defined by default in MSVC */
19+
#ifndef M_PI
20+
#define M_PI 3.14159265358979323846
21+
#endif
22+
1723
#include "cchem/utils/descriptors.h"
1824
#include "cchem/canonicalizer/molecule.h"
1925
#include "cchem/canonicalizer/atom.h"

0 commit comments

Comments
 (0)