--- a/src/config.h.W32
+++ b/src/config.h.W32
@@ -348,7 +348,7 @@
 /* Define to 1 if `d_type' is a member of `struct dirent'. */
 /* SV 57152: MinGW64 version of dirent doesn't support d_type. */
-#ifndef __MINGW64__
+#ifndef __MINGW32__
 # define HAVE_STRUCT_DIRENT_D_TYPE 1
 #endif
 
 /* Define to 1 if 'n_un.n_name' is a member of 'struct nlist'. */
