diff --git a/CMakeLists.txt b/CMakeLists.txt index 92b075ebd..9bce386cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,6 +84,7 @@ if (WIN32) src/net/Network_win.cpp ) + add_definitions(/DWIN32) set(EXTRA_LIBS ws2_32 psapi iphlpapi userenv) elseif (APPLE) set(SOURCES_OS diff --git a/src/Cpu_unix.cpp b/src/Cpu_unix.cpp index cddf54f1f..1b7c6b0a8 100644 --- a/src/Cpu_unix.cpp +++ b/src/Cpu_unix.cpp @@ -42,10 +42,6 @@ void Cpu::init() void Cpu::setAffinity(int id, unsigned long mask) { - if (id == -1) { - return; - } - cpu_set_t set; CPU_ZERO(&set);