From 0a2550249f9523dca974a79b51b5a7358b5fb943 Mon Sep 17 00:00:00 2001 From: CNLohr Date: Tue, 14 Mar 2017 19:05:46 -0400 Subject: Almost able to build on Windows. --- src/ootx_decoder.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/ootx_decoder.c') diff --git a/src/ootx_decoder.c b/src/ootx_decoder.c index e35c24d..f7a7938 100644 --- a/src/ootx_decoder.c +++ b/src/ootx_decoder.c @@ -6,10 +6,14 @@ #include #include -#include #include #include "ootx_decoder.h" -//#include "crc32.h" + +#ifdef NOZLIB +#include "crc32.h" +#else +#include +#endif //char* fmt_str = "L Y HMD %d 5 1 206230 %d\n"; @@ -145,7 +149,7 @@ void ootx_pump_bit(ootx_decoder_context *ctx, uint8_t dbit) { op.data = ctx->buffer+2; op.crc32 = *(uint32_t*)(op.data+padded_length); - uint32_t crc = crc32( 0L, Z_NULL, 0 ); + uint32_t crc = crc32( 0L, 0 /*Z_NULL*/, 0 ); crc = crc32( crc, op.data,op.length); if (crc != op.crc32) { -- cgit v1.2.3