52 #if defined(_WIN32) || defined(WIN32)
57 #ifdef GEOTESS_EXPORTS
58 #define GEOTESS_EXP_IMP __declspec(dllexport)
60 #define GEOTESS_EXP_IMP __declspec(dllimport)
65 #define GEOTESS_EXP __declspec(dllexport)
67 #define isnan(x) _isnan(x)
69 #else // Sun does not need these
71 #define GEOTESS_EXP_IMP
94 #define byte signed char
98 #if defined WIN32 || defined _WIN32
99 #if defined _M_X64 || defined _M_AMD64
100 #define LONG_INT long
101 #define LONG_INT_F "%ld"
103 #define LONG_INT long long
104 #define LONG_INT_F "%lld"
107 #if defined __amd64__ || defined __amd64 || defined __x86_64__ || defined __x86_64
108 #define LONG_INT long
109 #define LONG_INT_F "%ld"
111 #define LONG_INT long long
112 #define LONG_INT_F "%lld"
118 #ifndef BaseGlobals_H
123 static const double PI = 3.1415926535897932384626;
133 static const double EARTH_A = 6378.137;
144 static const double EARTH_E = 0.006694379990141320;
148 static const double RAD_TO_DEG = 180./3.1415926535897932384626;
154 static const double DEG_TO_RAD = 3.1415926535897932384626/180.;
164 static const float NaN_FLOAT = std::numeric_limits<float>::quiet_NaN();
165 static const double NaN_DOUBLE = std::numeric_limits<double>::quiet_NaN();