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>2011-12-04 19:49:14 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-12-04 19:49:14 +0400
commit6c6b0ecb27101770bf09758701022c874b0170f5 (patch)
treea63e41dfbb8d2c251dd71cf1b0fa8f416627ee65 /intern/cycles/util/util_boundbox.h
parent753bfe730a67bad1e0503a98cc4ca18a2e692355 (diff)
Fix compile issue on windows, broke this trying to fix for mac.
Diffstat (limited to 'intern/cycles/util/util_boundbox.h')
-rw-r--r--intern/cycles/util/util_boundbox.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/intern/cycles/util/util_boundbox.h b/intern/cycles/util/util_boundbox.h
index 24ea3655576..0114a9a26a5 100644
--- a/intern/cycles/util/util_boundbox.h
+++ b/intern/cycles/util/util_boundbox.h
@@ -19,12 +19,15 @@
#ifndef __UTIL_BOUNDBOX_H__
#define __UTIL_BOUNDBOX_H__
+#include <math.h>
#include <float.h>
-#include <cmath>
+#include "util_math.h"
#include "util_transform.h"
#include "util_types.h"
+using namespace std;
+
CCL_NAMESPACE_BEGIN
class BoundBox
@@ -73,8 +76,8 @@ public:
bool valid(void) const
{
return (min.x <= max.x) && (min.y <= max.y) && (min.z <= max.z) &&
- !(std::isnan(min.x) || std::isnan(min.y) || std::isnan(min.z)) &&
- !(std::isnan(max.x) || std::isnan(max.y) || std::isnan(max.z));
+ !(isnan(min.x) || isnan(min.y) || isnan(min.z)) &&
+ !(isnan(max.x) || isnan(max.y) || isnan(max.z));
}
BoundBox transformed(const Transform *tfm)