I'm trying to compile snappy ( https://bitbucket.org/robertvazan/snappy-visual-cpp) with VS2017. I can't pull this off with VS2015 also; - I've tried in command prompt (msbuild) and through the visual studio IDE; it can't recognize both _BitScanForward and_BitScanForward64. If it didn't recognize just one I would figure I've chosen wrong build mode (x86/x64) but seems like both are missing. I made sure to run the correct version of command prompt when building with msbuild.
#include <intrin.h>
was missing.