From aa8cfe238620507a92d0f7ac735e4ee965563958 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 27 Mar 2010 11:11:21 -0400 Subject: Fix gpsdecode compilation when one of the rtcm104 versions is disabled. Signed-off-by: esr@thyrsus.com --- gpsdecode.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gpsdecode.c') diff --git a/gpsdecode.c b/gpsdecode.c index 36e27f3e..9105c662 100644 --- a/gpsdecode.c +++ b/gpsdecode.c @@ -392,6 +392,7 @@ static void decode(FILE *fpin, FILE *fpout) while (packet_get(fileno(fpin), &lexer) > 0) { if (lexer.type == COMMENT_PACKET) continue; +#ifdef RTCM104V2_ENABLE else if (lexer.type == RTCM2_PACKET) { rtcm2_unpack(&rtcm2, (char *)lexer.isgps.buf); if (json) @@ -400,10 +401,13 @@ static void decode(FILE *fpin, FILE *fpout) rtcm2_sager_dump(&rtcm2, buf, sizeof(buf)); (void)fputs(buf, fpout); } +#endif +#ifdef RTCM104V3_ENABLE else if (lexer.type == RTCM3_PACKET) { rtcm3_unpack(&rtcm3, (char *)lexer.outbuffer); rtcm3_dump(&rtcm3, stdout); } +#endif else if (lexer.type == AIVDM_PACKET) { if (verbose >=1 ) (void)fputs((char *)lexer.outbuffer, stdout); -- cgit v1.2.1