diff --git a/src/Makefile b/src/Makefile
index 87dc34c6dc51811d677a56ed111853ab5dd6c9fc..b6d7c7fc5bd26d7419ce85c0053f5b70bdbcec9f 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -178,7 +178,6 @@ endif #ifdef MINGW
 
 ifdef MINGW64
 MINGW=1
-NONX86=1
 include win32/Makefile.cfg
 endif #ifdef MINGW64
 
diff --git a/src/win32/Makefile.cfg b/src/win32/Makefile.cfg
index ef3eb4d5f3669749bb084ad811a5a17068224370..a73858bd46c41a1abac7da190aee236423f1fbe8 100644
--- a/src/win32/Makefile.cfg
+++ b/src/win32/Makefile.cfg
@@ -26,7 +26,7 @@ ifndef NOASM
 	USEASM=1
 endif
 
-ifdef MINGW #miniupnc is broken with MINGW64
+ifndef MINGW64 #miniupnc is broken with MINGW64
 	HAVE_MINIUPNPC=1
 endif