Index: /trunk/BNC/RTCM3/rtcm3torinex.cpp
===================================================================
--- /trunk/BNC/RTCM3/rtcm3torinex.cpp	(revision 94)
+++ /trunk/BNC/RTCM3/rtcm3torinex.cpp	(revision 95)
@@ -1,5 +1,5 @@
 /*
   Converter for RTCM3 data to RINEX.
-  $Id: rtcm3torinex.cpp,v 1.3 2006/08/25 11:50:34 mervart Exp $
+  $Id: rtcm3torinex.cpp,v 1.4 2006/08/31 09:20:09 mervart Exp $
 
   Program written bei
@@ -36,12 +36,15 @@
 */
 
+#ifndef NO_RTCM3_MAIN
+#include <stdint.h>
+#include <getopt.h>
+#endif
+
 #include <ctype.h>
 #include <errno.h>
-#include <getopt.h>
 #include <math.h>
 #include <netdb.h>
 #include <netinet/in.h>
 #include <signal.h>
-#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -52,4 +55,6 @@
 #include <unistd.h>
 
+
+
 /* The string, which is send as agent in HTTP request */
 #define AGENTSTRING "NTRIP NtripRTCM3ToRINEX"
@@ -57,13 +62,12 @@
 #define MAXDATASIZE 1000 /* max number of bytes we can get at once */
 
+#include "rtcm3torinex.h"
+
 /* CVS revision and version */
-static char revisionstr[] = "$Revision: 1.3 $";
-static char datestr[]     = "$Date: 2006/08/25 11:50:34 $";
+static char revisionstr[] = "$Revision: 1.4 $";
+static char datestr[]     = "$Date: 2006/08/31 09:20:09 $";
 static int stop = 0;
 
-
-
-#include "rtcm3torinex.h"
-
+#ifndef NO_RTCM3_MAIN
 
 struct Args
@@ -157,4 +161,6 @@
   return res;
 }
+#endif
+
 
 static const char encodingTable [64] = {
@@ -732,11 +738,12 @@
   }
 
-#ifdef RTCM_TRANSFORM_MAIN
+
   for(i = 0; i < hdata.numheaders; ++i)
     printf("%s\n", hdata.data.unnamed[i]);
   printf("                                                            "
   "END OF HEADER\n");
-#endif
-}
+}
+
+#ifndef NO_RTCM3_MAIN
 
 /* let the output complete a block if necessary */
@@ -853,5 +860,4 @@
 }
 
-#ifdef RTCM_TRANSFORM_MAIN
 int main(int argc, char **argv)
 {
@@ -995,4 +1001,4 @@
   return 0;
 }
-#endif
-
+
+#endif   // NO_RTCM3_MAIN
Index: /trunk/BNC/bnc.pro
===================================================================
--- /trunk/BNC/bnc.pro	(revision 94)
+++ /trunk/BNC/bnc.pro	(revision 95)
@@ -1,2 +1,4 @@
+
+DEFINES += NO_RTCM3_MAIN
 
 HEADERS =             bncgetthread.h    bncwindow.h   bnctabledlg.h   \
