diff --git a/io.h b/io.h index 19201c088..05aa5ed37 100644 --- a/io.h +++ b/io.h @@ -50,7 +50,7 @@ enum ethash_io_rc { // small hack for windows. I don't feel I should use va_args and forward just // to have this one function properly cross-platform abstracted -#if defined(_WIN32) +#if defined(_WIN32) && !defined(__GNUC__) #define snprintf(...) sprintf_s(__VA_ARGS__) #endif diff --git a/io_win32.c b/io_win32.c index d9c54d141..2e6c8deb8 100644 --- a/io_win32.c +++ b/io_win32.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include FILE* ethash_fopen(char const* file_name, char const* mode) {