Skip to content

Commit 26714cf

Browse files
authored
Fix bugs of error C2065: “M_PI” not defined in Windows
1 parent d81c7ed commit 26714cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpp/patchworkpp/include/patchwork/patchworkpp.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#ifndef PATCHWORKPP_H
22
#define PATCHWORKPP_H
33

4+
#ifndef M_PI
5+
#define M_PI 3.14159265358979323846
6+
#endif
7+
48
#include <iostream>
59
#include <vector>
610
#include <Eigen/Dense>

0 commit comments

Comments
 (0)