]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix MS-Windows build following 2012-11-21T21:06:52Z!eggert@cs.ucla.edu.
authorEli Zaretskii <eliz@gnu.org>
Thu, 22 Nov 2012 03:56:38 +0000 (05:56 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 22 Nov 2012 03:56:38 +0000 (05:56 +0200)
 src/w32.c (getcwd): Fix the 2nd argument type, to prevent conflicts
 with Windows system header.

Fixes: debbugs:12945
src/ChangeLog
src/w32.c

index 9e9ae468044be5154458d38dc31144027801d56e..3587a9e295b861eabebae233332d39ad258576b3 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-22  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32.c (getcwd): Fix the 2nd argument type, to prevent conflicts
+       with Windows system header.
+
 2012-11-21  Paul Eggert  <eggert@cs.ucla.edu>
 
        Assume POSIX 1003.1-1988 or later for unistd.h (Bug#12945).
index da778eb85415ff37114fb89065cdf3fce99c05b7..038a442f52989aa8efa338a06d2a612b61787a08 100644 (file)
--- a/src/w32.c
+++ b/src/w32.c
@@ -908,7 +908,7 @@ static char startup_dir[MAXPATHLEN];
 
 /* Get the current working directory.  */
 char *
-getcwd (char *dir, size_t dirsize)
+getcwd (char *dir, int dirsize)
 {
   if (!dirsize)
     {