diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ac285f69..4875dcf77 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,8 +10,7 @@ if (NOT MSVC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99") endif() -set(FILES util.c - util.h +set(FILES util.h io.c internal.c ethash.h @@ -21,7 +20,7 @@ set(FILES util.c data_sizes.h) if (MSVC) - list(APPEND FILES io_win32.c mmap_win32.c) + list(APPEND FILES util.c io_win32.c mmap_win32.c) else() list(APPEND FILES io_posix.c) endif() diff --git a/util.c b/util.c index 615ca3243..268e6db05 100644 --- a/util.c +++ b/util.c @@ -22,7 +22,6 @@ #include #include "util.h" -#ifdef _MSC_VER // foward declare without all of Windows.h __declspec(dllimport) void __stdcall OutputDebugStringA(char const* lpOutputString); @@ -37,5 +36,3 @@ void debugf(char const* str, ...) buf[sizeof(buf)-1] = '\0'; OutputDebugStringA(buf); } - -#endif