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,