Changeset 13041 for OpenSceneGraph/trunk/include/osg/Math
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Math (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Math
r12877 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2004 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2004 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 22 22 //so this code checks the version so it can add in workarounds for older versions. 23 23 #ifdef __APPLE__ 24 // Using std::isnan will work for OS X, but use of <cmath> 25 // and std:: are not necessarily portible with other systems so 24 // Using std::isnan will work for OS X, but use of <cmath> 25 // and std:: are not necessarily portible with other systems so 26 26 // the include of <cmath> is isolated here. 27 27 #include <cmath> … … 34 34 // The reason for this extra check is that if the user relies on default 35 35 // settings, MAC_OS_X_VERSION_MIN_REQUIRED will be set to 1010 and hit 36 // this code path, but this is probably not what they want if using gcc 4+. 36 // this code path, but this is probably not what they want if using gcc 4+. 37 37 #if (__GNUC__ < 4) 38 38 #define APPLE_PRE_10_2 … … 42 42 #define APPLE_PRE_10_6 43 43 #endif 44 44 45 45 #endif 46 46 #endif … … 83 83 inline float sqrtf(float value) { return static_cast<float>(sqrt(value)); } 84 84 #endif 85 85 86 86 #ifndef fabsf 87 87 inline float fabsf(float value) { return static_cast<float>(fabs(value)); }
