From: Marco Costalba Date: Thu, 21 May 2009 16:08:34 +0000 (+0100) Subject: Fix compile errors under MSVC X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=628f844c116e3afe99d0f72ca5f6cd2119e918d9 Fix compile errors under MSVC Fallback from previous patches. Signed-off-by: Marco Costalba --- diff --git a/src/bitcount.h b/src/bitcount.h index 40160633..a4133fb2 100644 --- a/src/bitcount.h +++ b/src/bitcount.h @@ -48,7 +48,7 @@ // Select type of intrinsic bit count instruction to use -#if defined(_MSC_VER) // Microsoft compiler +#if defined(_MSC_VER) && defined(_WIN64) // Microsoft compiler #include diff --git a/src/main.cpp b/src/main.cpp index 210b8363..9c860114 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,7 +18,7 @@ */ // To profile with callgrind uncomment following line -#define USE_CALLGRIND +//#define USE_CALLGRIND //// diff --git a/src/movegen.cpp b/src/movegen.cpp index a783a625..4f1d14de 100644 --- a/src/movegen.cpp +++ b/src/movegen.cpp @@ -24,6 +24,7 @@ #include +#include "bitcount.h" #include "movegen.h" // Simple macro to wrap a very common while loop, no facny, no flexibility, @@ -333,7 +334,7 @@ int generate_evasions(const Position& pos, MoveStack* mlist, Bitboard pinned) { // The checking pawn cannot be a discovered (bishop) check candidate // otherwise we were in check also before last double push move. assert(!bit_is_set(pos.discovered_check_candidates(them), checksq)); - assert(count_1s(b1) == 1 || count_1s(b1) == 2); + assert(count_1s(b1) == 1 || count_1s(b1) == 2); b1 &= ~pinned; while (b1)