orca-robotics INTRODUCTION Overview Download and Install Documentation REPOSITORY Interfaces Drivers Libraries Utilities Software Map DEVELOPER Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
windows.h00001 /* 00002 * Orca Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2008 Alex Brooks, Alexei Makarenko, Tobias Kaupp 00005 * 00006 * This copy of Orca is licensed to you under the terms described in the 00007 * HYDRO_LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 //some very common functions are not available in windows, define them here 00012 00013 #ifdef WIN32 00014 00015 //windows doesn't define M_PI... anywhere, what a useless math header 00016 #ifndef M_PI 00017 #define M_PI 3.14159265358979323846 00018 #endif 00019 00020 //windows doesn't define isinf isnan or finite directly in vc 2005... 00021 //its 2005 and ms has a million devs, you'd think... well nevermind 00022 #include <float.h> 00023 00024 #ifndef isnan(n) 00025 #define isnan(n) _isnan(n) 00026 #endif 00027 00028 #ifndef isinf(n) 00029 #define isinf(n) !_finite(n) 00030 #endif 00031 00032 #ifndef finite(n) 00033 #define finite(n) _finite(n) 00034 #endif 00035 00036 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)