builds and passes tests on windows

This commit is contained in:
Greg Landrum
2016-01-02 18:20:25 +01:00
parent 9ae728ef5c
commit 0532faee70

View File

@@ -777,7 +777,8 @@ template void UpdateBitVectFromBinaryText(ExplicitBitVect&, const std::string&);
// from here:
// http://stackoverflow.com/questions/3849337/msvc-equivalent-to-builtin-popcount
#ifdef __MSC_VER
// but corrected to get the ifdef right
#ifdef _MSC_VER
#include <intrin.h>
#define __builtin_popcount __popcnt
#endif