diff options
author | Thomas Dinges <blender@dingto.org> | 2010-01-25 16:19:52 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2010-01-25 16:19:52 +0300 |
commit | ab5a985cfeb105c5c04b0fe84bc6d4e7ab12c93c (patch) | |
tree | 91d76d16534497d1249f56bc7200a22511405f27 /source/blender | |
parent | cbb23d96bb4644bd4fdeadbfd790694e57983c53 (diff) |
* Added #define _USE_MATH_DEFINES
in some files to get Blender to compile again on msvc. Without that, it didn't found M_PI.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/unit.c | 1 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_brush.c | 1 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_fcurve.c | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c index 1025bee6b8e..c2994e1134c 100644 --- a/source/blender/blenkernel/intern/unit.c +++ b/source/blender/blenkernel/intern/unit.c @@ -20,6 +20,7 @@ * * ***** END GPL LICENSE BLOCK ***** */ +#define _USE_MATH_DEFINES #include <stdlib.h> #include <stdio.h> diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c index 5504daf2994..06b08d677d4 100644 --- a/source/blender/makesrna/intern/rna_brush.c +++ b/source/blender/makesrna/intern/rna_brush.c @@ -21,6 +21,7 @@ * * ***** END GPL LICENSE BLOCK ***** */ + #define _USE_MATH_DEFINES #include <stdlib.h> #include <math.h> diff --git a/source/blender/makesrna/intern/rna_fcurve.c b/source/blender/makesrna/intern/rna_fcurve.c index ee94d761f03..f77894222d5 100644 --- a/source/blender/makesrna/intern/rna_fcurve.c +++ b/source/blender/makesrna/intern/rna_fcurve.c @@ -22,6 +22,8 @@ * ***** END GPL LICENSE BLOCK ***** */ + #define _USE_MATH_DEFINES + #include <stdlib.h> #include <math.h> |