diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-03-27 11:11:21 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-03-27 11:11:21 -0400 |
commit | aa8cfe238620507a92d0f7ac735e4ee965563958 (patch) | |
tree | af86dbcdee58ae50ecb1b4c00bc1bf9841120090 /gpsdecode.c | |
parent | aade3080642fff0d0c0f9a0fd668ea965ee072aa (diff) | |
download | gpsd-aa8cfe238620507a92d0f7ac735e4ee965563958.tar.gz |
Fix gpsdecode compilation when one of the rtcm104 versions is disabled.
Signed-off-by: esr@thyrsus.com
Diffstat (limited to 'gpsdecode.c')
-rw-r--r-- | gpsdecode.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |