diff options
author | Andrea Weikert <elubie@gmx.net> | 2008-07-05 00:21:08 +0400 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2008-07-05 00:21:08 +0400 |
commit | 488a8291d13a631ee1f9a41fce6eccea712ddc5e (patch) | |
tree | 0078a96f2b9f71b5c2e2ddf32d377c0a58880264 /source/blender | |
parent | 107b78a3d2b1a37f91b1e46511a3ea29f7f5cbbf (diff) |
== compile fix ==
- fix compilation for MSVC (added missing math define)
- note: defines were already duplicated, added twice to keep them in synch
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenlib/BLI_arithb.h | 3 | ||||
-rw-r--r-- | source/blender/blenlib/BLI_winstuff.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_arithb.h b/source/blender/blenlib/BLI_arithb.h index 89ce51c2f02..c22b6f79e08 100644 --- a/source/blender/blenlib/BLI_arithb.h +++ b/source/blender/blenlib/BLI_arithb.h @@ -50,6 +50,9 @@ extern "C" { #ifndef M_SQRT1_2 #define M_SQRT1_2 0.70710678118654752440 #endif +#ifndef M_1_PI +#define M_1_PI 0.318309886183790671538 +#endif #ifdef WIN32 #ifndef FREE_WINDOWS diff --git a/source/blender/blenlib/BLI_winstuff.h b/source/blender/blenlib/BLI_winstuff.h index 9c192ba8b09..11150075bac 100644 --- a/source/blender/blenlib/BLI_winstuff.h +++ b/source/blender/blenlib/BLI_winstuff.h @@ -73,6 +73,9 @@ #ifndef M_SQRT1_2 #define M_SQRT1_2 0.70710678118654752440 #endif +#ifndef M_1_PI +#define M_1_PI 0.318309886183790671538 +#endif #define MAXPATHLEN MAX_PATH |