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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-01-26 14:25:39 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-01-26 14:25:39 +0300
commit4efed2351710e1d726aa869bc5e7a41c0a1cac8b (patch)
treef5866ecc469a9d19b81b781158cc0572f2c68687 /source/blender/windowmanager
parent7c776bc124dc218e3e663854fb4fcf1e70a56250 (diff)
Use #include "BLI_math.h" instead of _USE_MATH_DEFINES to get M_PI defined.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_gesture.c4
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c3
2 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/windowmanager/intern/wm_gesture.c b/source/blender/windowmanager/intern/wm_gesture.c
index 958832ce314..e94aab7ab89 100644
--- a/source/blender/windowmanager/intern/wm_gesture.c
+++ b/source/blender/windowmanager/intern/wm_gesture.c
@@ -26,9 +26,6 @@
* ***** END GPL LICENSE BLOCK *****
*/
-#define _USE_MATH_DEFINES
-#include <math.h>
-
#include "DNA_screen_types.h"
#include "DNA_vec_types.h"
#include "DNA_userdef_types.h"
@@ -38,6 +35,7 @@
#include "BLI_blenlib.h"
#include "BLI_editVert.h" /* lasso tessellation */
+#include "BLI_math.h"
#include "BLI_scanfill.h" /* lasso tessellation */
#include "BKE_context.h"
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 04d6a5b2325..2f2aebbc525 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -27,8 +27,6 @@
*/
#include <float.h>
-#define _USE_MATH_DEFINES
-#include <math.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
@@ -48,6 +46,7 @@
#include "BLI_blenlib.h"
#include "BLI_dynstr.h" /*for WM_operator_pystring */
+#include "BLI_math.h"
#include "BLO_readfile.h"