浏览代码

define M_PI

M_PI isn't a part of standard and may be undefined.
Michael Pavlyshko 11 年之前
父节点
当前提交
24af413d61
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Global.h

+ 4 - 0
Global.h

@@ -117,6 +117,10 @@ static_assert(sizeof(bool) == 1, "Bool needs to be 1 byte in size.");
 #include <android/log.h>
 #endif
 
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
 /* ---------------------------------------------------------------------------- */
 /* Usings */
 /* ---------------------------------------------------------------------------- */