35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
$NetBSD: patch-ac,v 1.2 2012/03/07 16:27:35 adam Exp $
|
|
|
|
--- include/osg/Math.orig 2008-11-23 13:35:43.000000000 +0200
|
|
+++ include/osg/Math 2009-01-14 09:49:00.000000000 +0200
|
|
@@ -14,7 +14,7 @@
|
|
#ifndef __OSG_MATH
|
|
#define __OSG_MATH
|
|
|
|
-#include <math.h>
|
|
+#include <cmath>
|
|
|
|
#include <osg/Export>
|
|
|
|
@@ -207,14 +207,14 @@
|
|
inline bool isNaN(float v) { return _isnan(v)!=0; }
|
|
inline bool isNaN(double v) { return _isnan(v)!=0; }
|
|
#else
|
|
- #if defined(__APPLE__)
|
|
+// #if defined(__APPLE__)
|
|
inline bool isNaN(float v) { return std::isnan(v); }
|
|
inline bool isNaN(double v) { return std::isnan(v); }
|
|
- #else
|
|
- // Need to use to std::isnan to avoid undef problem from <cmath>
|
|
- inline bool isNaN(float v) { return isnan(v); }
|
|
- inline bool isNaN(double v) { return isnan(v); }
|
|
- #endif
|
|
+// #else
|
|
+// // Need to use to std::isnan to avoid undef problem from <cmath>
|
|
+// inline bool isNaN(float v) { return isnan(v); }
|
|
+// inline bool isNaN(double v) { return isnan(v); }
|
|
+// #endif
|
|
#endif
|
|
|
|
|