1b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/////////////////////////////////////////////////////////////////////////////////// 2b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// OpenGL Mathematics (glm.g-truc.net) 3b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// 4b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net) 5b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// Permission is hereby granted, free of charge, to any person obtaining a copy 6b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// of this software and associated documentation files (the "Software"), to deal 7b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// in the Software without restriction, including without limitation the rights 8b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// copies of the Software, and to permit persons to whom the Software is 10b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// furnished to do so, subject to the following conditions: 11b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// 12b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// The above copyright notice and this permission notice shall be included in 13b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// all copies or substantial portions of the Software. 14b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// 15b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// THE SOFTWARE. 22b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// 23b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// @ref core 24b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// @file glm/core/_fixes.hpp 25b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// @date 2011-02-21 / 2011-11-22 26b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/// @author Christophe Riccio 27b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG/////////////////////////////////////////////////////////////////////////////////// 28b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG 29b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#include <cmath> 30b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG 31b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG//! Workaround for compatibility with other libraries 32b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#ifdef max 33b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#undef max 34b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#endif 35b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG 36b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG//! Workaround for compatibility with other libraries 37b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#ifdef min 38b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#undef min 39b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#endif 40b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG 41b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG//! Workaround for Android 42b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#ifdef isnan 43b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#undef isnan 44b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#endif 45b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG 46b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG//! Workaround for Android 47b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#ifdef isinf 48b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#undef isinf 49b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#endif 50b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG 51b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG//! Workaround for Chrone Native Client 52b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#ifdef log2 53b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#undef log2 54b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG#endif 55b0b195df6c4343219e339ccb37978e8432a5f871Tony-LunarG 56