Przeglądaj źródła

Add PI definition for platforms that doesn't have it

mingodad 7 lat temu
rodzic
commit
142d78de40
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      SquiLu-ext/dad_utils.cpp

+ 4 - 0
SquiLu-ext/dad_utils.cpp

@@ -2,6 +2,10 @@
 #include <stdio.h>
 #include <stdio.h>
 #include <math.h>
 #include <math.h>
 
 
+#ifndef M_PI
+#define M_PI		3.14159265358979323846
+#endif
+
 struct lat_long_st
 struct lat_long_st
 {
 {
     double latitude, longitude;
     double latitude, longitude;