]> granicus.if.org Git - vim/commitdiff
patch 7.4.837 v7.4.837
authorBram Moolenaar <Bram@vim.org>
Tue, 25 Aug 2015 17:49:50 +0000 (19:49 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 25 Aug 2015 17:49:50 +0000 (19:49 +0200)
Problem:    Compiler warning with MSVC compiler when using +sniff.
Solution:   Use Sleep() instead of _sleep(). (Tux)

src/if_sniff.c
src/version.c

index 5cacb72f66979a94a66c246fdf3b433804f27bbb..bfdc68bfa64d04edcc8c6103bfb31d21dc4c9939 100644 (file)
@@ -655,7 +655,11 @@ sniff_disconnect(immediately)
     else
     {
 #ifdef WIN32
+# if (defined(_MSC_VER) && _MSC_VER >= 1400)
+        Sleep(2);
+# else
        _sleep(2);
+# endif
        if (!sniff_request_processed)
            ProcessSniffRequests();
 #else
index 08d1140119a0597d5de6c5d54f02d8c3fb2bb5cf..57ff84c32acf0e777b2549ec5e5954f6cb994a17 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    837,
 /**/
     836,
 /**/