gvalues.h
Go to the documentation of this file.
1 #ifndef _GVALUES_H_
2 #define _GVALUES_H_
3 
4 #ifdef LINUX
5  #include <values.h>
6 #endif
7 #ifdef MACOSX
8  #include <limits.h>
9  #include <math.h>
10  #define MAXDOUBLE 1e1000
11  //#define isnan(x) (x==FP_NAN)
12 #endif
13 #ifdef _WIN32
14  #include <limits>
15  #ifndef __DRAND48_DEFINED__
16  #define __DRAND48_DEFINED__
17  inline double drand48() { return double(rand()) / RAND_MAX;}
18  inline void srand48(unsigned int seed) { srand(seed); }
19  #endif
20  #ifndef M_PI
21  #define M_PI 3.1415926535897932384626433832795
22  #endif
23  #define round(d) (floor((d) + 0.5))
24  typedef unsigned int uint;
25  #define isnan(x) (_isnan(x))
26 #endif
27 
28 #endif
29 


openslam_gmapping
Author(s): Cyrill Stachniss, Udo Frese, Giorgio Grisetti, Wolfram Burgard
autogenerated on Thu Oct 19 2023 02:25:51