bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C99 feature and MSVC v16


From: Gisle Vanem
Subject: C99 feature and MSVC v16
Date: Mon, 10 Nov 2014 18:42:44 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:33.0) Gecko/20100101 Firefox/33.0 SeaMonkey/2.30

Hi list.

I managed to build gnulib using MSVC v16 (i.e. Visual Studio
2010 Express). All was okay except for a little C99-feature
(of data after code which my v16 doesn't support).

So can you please apply this patch?

--- orig/lib/fts.c   2014-11-08 12:19:14 +0000
+++ lib/fts.c        2014-11-08 12:23:21 +0000
@@ -1293,6 +1293,7 @@
         int dir_fd;
         FTSENT *cur = sp->fts_cur;
         bool continue_readdir = !!cur->fts_dirp;
+        size_t max_entries;

         /* When cur->fts_dirp is non-NULL, that means we should
            continue calling readdir on that existing DIR* pointer
@@ -1354,7 +1355,7 @@
            function.  But when no such function is specified, we can read
            entries in batches that are large enough to help us with inode-
            sorting, yet not so large that we risk exhausting memory.  */
-        size_t max_entries = (sp->fts_compar == NULL
+        max_entries = (sp->fts_compar == NULL
                               ? FTS_MAX_READDIR_ENTRIES : SIZE_MAX);

         /*

--
--gv



reply via email to

[Prev in Thread] Current Thread [Next in Thread]