How about the attached patch instead?
>From f386f157997182fa54c5ff408233f42a3ef6d0ed Mon Sep 17 00:00:00 2001
From: Paul Eggert
Date: Tue, 24 Feb 2015 20:44:32 -0800
Subject: [PATCH] glob, etc.: port to MSVC v18 on MS-Windows 8.1
* lib/dirent--.h (GNULIB_defined_opendir):
* lib/dirent.in.h (GNUL
Paul Eggert wrote 22-Jan-2015:
diff --git a/ChangeLog b/ChangeLog
index e0c12d3..8839306 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-01-21 Paul Eggert
+
+ getcwd, glob, scandir: port to MSVC
+ Problem reported by Gisle Vanem in:
+ http://lists.gnu.org/archive
Gisle Vanem wrote:
But maybe this should be:
# ifdef HAVE_OPENDIR
# undef opendir
# endif
# ifdef HAVE_CLOSEDIR
# undef closedir
# endif
Yes, I like this better. Does the attached patch work for you?
This brings up my confusion I have with stuff like
what value REPLACE_CL