File rtcmmc_fixcompilerbug.diff of Package ntrip
diff -ur RTCMModule/GPSDecoder.h RTCMModule_new/GPSDecoder.h
--- RTCMModule/GPSDecoder.h 2004-10-04 09:19:45.000000000 +0200
+++ RTCMModule_new/GPSDecoder.h 2008-03-03 13:39:59.000000000 +0100
@@ -10,10 +10,10 @@
typedef struct tagEphemeris EphemerisStruct;
+#define lambda1 0.1902936727984 // [m]
+#define lambda2 0.2442102134241 // [m]
class GPSDecoder {
public:
- static const double lambda1 = 0.1902936727984; // [m]
- static const double lambda2 = 0.2442102134241; // [m]
static const unsigned glonass_svid = 45;
virtual void Decode(char* _ptrBuffer=NULL, int _nBufLen=0) = 0;
diff -ur RTCMModule/m_data.h RTCMModule_new/m_data.h
--- RTCMModule/m_data.h 2004-09-27 16:41:35.000000000 +0200
+++ RTCMModule_new/m_data.h 2008-03-03 14:03:42.000000000 +0100
@@ -9,6 +9,7 @@
#include <time.h>
#include <ctype.h>
+#include <stdlib.h>
#include <string>
#include <vector>
@@ -22,7 +23,6 @@
#include <iostream>
#include <fstream>
-#include <strstream>
#if defined(__GNUC_MINOR__) && ( __GNUC_MINOR__ < 91 )
#else