aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2018-02-13 00:27:21 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2018-02-13 00:27:21 +0800
commitb859c1accbb2bf7b19f634346528458ccf11b6f1 (patch)
tree9edc158e77cda0000d020f27c7f17fb3d1c9014c /include
parent7621516c1ca0ecf9f80d094763a1705c32d7458f (diff)
downloadSMELT-b859c1accbb2bf7b19f634346528458ccf11b6f1.tar.xz
Fixed building on Microsoft(R) Windows(TM), a.k.a. the most advanced
operating system ever.
Diffstat (limited to 'include')
-rw-r--r--include/smmath.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/smmath.hpp b/include/smmath.hpp
index d5ed80e..6be239a 100644
--- a/include/smmath.hpp
+++ b/include/smmath.hpp
@@ -15,7 +15,11 @@
#define sqr(x) ((x)*(x))
#define EPS 1e-8
#ifndef PI
-#define PI 3.14159265358979323846f
+#define PI 3.14159265358979323846264338327950288f
+#endif
+#ifdef min //for windows sdk, the stupidest sdk ever
+#undef min
+#undef max
#endif
template<class T>const T& min(const T& a,const T& b){return a<b?a:b;}
template<class T>const T& max(const T& a,const T& b){return a>b?a:b;}