From 63a1b49745ab038aadd70bbfa3f97acec88f2a20 Mon Sep 17 00:00:00 2001 From: Danny Su Date: Tue, 20 Dec 2016 15:41:15 -0800 Subject: [PATCH] Fix build for 64-bit Windows (#130) Building on 64-bit Windows gets to 99% and fails on this particular file due to the `stdafx.h` inclusion. The macro in `entropy-meter.cpp` is different than `src/zxcvbn/zxcvbn.cpp`. After copying the macro from `zxcvbn.cpp` and rebuilding, the Windows build succeeded. --- utils/entropy-meter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/entropy-meter.cpp b/utils/entropy-meter.cpp index 3266ec55b..a5e6e50e9 100644 --- a/utils/entropy-meter.cpp +++ b/utils/entropy-meter.cpp @@ -13,8 +13,10 @@ See zxcvbn/zxcvbn.cpp for complete COPYRIGHT Notice /* For pre-compiled headers under windows */ #ifdef _WIN32 +#ifndef __MINGW32__ #include "stdafx.h" #endif +#endif static void calculate(const char *pwd, int advanced) {