54 #if defined(_WIN32) || defined(WIN32)
59 #ifdef GEOTESS_EXPORTS
60 #define GEOTESS_EXP_IMP __declspec(dllexport)
62 #define GEOTESS_EXP_IMP __declspec(dllimport)
67 #define GEOTESS_EXP __declspec(dllexport)
69 #define isnan(x) _isnan(x)
71 #else // Sun does not need these
73 #define GEOTESS_EXP_IMP
84 typedef long long int64;
89 typedef unsigned char uByte;
96 #define byte signed char
100 #if defined WIN32 || defined _WIN32
101 #if defined _M_X64 || defined _M_AMD64
102 #define LONG_INT long
103 #define LONG_INT_F "%ld"
105 #define LONG_INT long long
106 #define LONG_INT_F "%lld"
109 #if defined __amd64__ || defined __amd64 || defined __x86_64__ || defined __x86_64
110 #define LONG_INT long
111 #define LONG_INT_F "%ld"
113 #define LONG_INT long long
114 #define LONG_INT_F "%lld"
120 #ifndef BaseGlobals_H
125 static const double PI = 3.1415926535897932384626;
130 static const double PI_OVER_TWO = 0.5 * PI;
140 static const double EARTH_A = 6378.137;
151 static const double EARTH_E = 0.006694379990141316;
155 static const double RAD_TO_DEG = 180./3.1415926535897932384626;
160 static const double DEG_TO_RAD = 3.1415926535897932384626/180.;
169 static const float NaN_FLOAT = std::numeric_limits<float>::quiet_NaN();
170 static const double NaN_DOUBLE = std::numeric_limits<double>::quiet_NaN();