diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-26 14:25:39 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-26 14:25:39 +0300 |
commit | 4efed2351710e1d726aa869bc5e7a41c0a1cac8b (patch) | |
tree | f5866ecc469a9d19b81b781158cc0572f2c68687 /source/blender/blenkernel | |
parent | 7c776bc124dc218e3e663854fb4fcf1e70a56250 (diff) |
Use #include "BLI_math.h" instead of _USE_MATH_DEFINES to get M_PI defined.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/depsgraph.c | 5 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/unit.c | 8 |
2 files changed, 3 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c index d584b18aa84..b6ba07ada4a 100644 --- a/source/blender/blenkernel/intern/depsgraph.c +++ b/source/blender/blenkernel/intern/depsgraph.c @@ -29,12 +29,9 @@ #include <string.h> #include <math.h> -#ifdef _WIN32 -#include "BLI_winstuff.h" -#endif - #include "BLI_blenlib.h" #include "BLI_math.h" +#include "BLI_winstuff.h" #include "DNA_anim_types.h" #include "DNA_action_types.h" diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c index c2994e1134c..1e8896042d6 100644 --- a/source/blender/blenkernel/intern/unit.c +++ b/source/blender/blenkernel/intern/unit.c @@ -20,17 +20,13 @@ * * ***** END GPL LICENSE BLOCK ***** */ -#define _USE_MATH_DEFINES - #include <stdlib.h> #include <stdio.h> #include <ctype.h> #include <string.h> -#include <math.h> -#if defined(WIN32) && (!(defined snprintf)) -#define snprintf _snprintf -#endif +#include "BLI_math.h" +#include "BLI_winstuff.h" #define TEMP_STR_SIZE 256 |