Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/extern
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2016-05-08 16:46:18 +0300
committerJoshua Leung <aligorith@gmail.com>2016-05-08 16:46:18 +0300
commitd4ed5c398e689c46b8dc90134ad0ebabfcb79272 (patch)
treefdbfc6a3e21c115a3ea27229feb67f688b9c29c4 /extern
parente43ee5563b8856ab1de7b1d12d9aad927b2b2047 (diff)
A "better" (?) fix for msvc silliness - used in one other place in all of Blender
Diffstat (limited to 'extern')
-rw-r--r--extern/curve_fit_nd/intern/curve_fit_cubic.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/extern/curve_fit_nd/intern/curve_fit_cubic.c b/extern/curve_fit_nd/intern/curve_fit_cubic.c
index 8261950e0bd..b97763460a3 100644
--- a/extern/curve_fit_nd/intern/curve_fit_cubic.c
+++ b/extern/curve_fit_nd/intern/curve_fit_cubic.c
@@ -29,6 +29,10 @@
* \ingroup curve_fit
*/
+#ifdef _MSC_VER
+# define _USE_MATH_DEFINES
+#endif
+
#include <math.h>
#include <float.h>
#include <stdbool.h>
@@ -39,12 +43,6 @@
#include "../curve_fit_nd.h"
-/* Fix for compiling on MSVC */
-#ifndef M_PI
-#define M_PI 3.14159265358979323846 /* pi */
-#endif
-
-
/* Take curvature into account when calculating the least square solution isn't usable. */
#define USE_CIRCULAR_FALLBACK