From a34d7aeab7f5525817372708b8137001f181a9cd Mon Sep 17 00:00:00 2001 From: Rodrigo Tobar Date: Thu, 21 Jun 2018 22:10:14 +0800 Subject: [PATCH] Fixing pending problems The consume.c module was still failing to compile because the definitions from common.h were not being included into it. Now they are, and in the process I added an include guard in common.h in case it gets included in the future more than once. Signed-off-by: Rodrigo Tobar --- common.h | 7 ++++++- consume.c | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/common.h b/common.h index f0a404f..893740d 100644 --- a/common.h +++ b/common.h @@ -23,8 +23,13 @@ * */ +#ifndef _COMMON_H_ +#define _COMMON_H_ + #if defined(WIN32) || defined(_WIN32) || defined(_MSC_VER) || defined(__MINGW32__) #define _IS_WINDOWS #else #undef _IS_WINDOWS -#endif \ No newline at end of file +#endif + +#endif // _COMMON_H_ diff --git a/consume.c b/consume.c index 10422b3..4892c40 100644 --- a/consume.c +++ b/consume.c @@ -23,6 +23,10 @@ * */ +#include "common.h" + +#ifndef _IS_WINDOWS + #include #include #include @@ -34,7 +38,6 @@ #include "crc32c.h" -#ifndef _IS_WINDOWS int _crc32c_read_crc_write(int fd_in, int fd_out, float in_timeout, size_t buffsize, uint64_t total,