changeset 38572:12460b06bc8b

stat: Complete removal of REPLACE_FUNC_STAT_DIR code. * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
author Bruno Haible <bruno@clisp.org>
date Sat, 13 May 2017 02:32:24 +0200
parents 333688eaea6e
children ec217efd06ca
files ChangeLog lib/stat.c
diffstat 2 files changed, 5 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri May 12 06:18:50 2017 -0700
+++ b/ChangeLog	Sat May 13 02:32:24 2017 +0200
@@ -1,3 +1,8 @@
+2017-05-13  Bruno Haible  <bruno@clisp.org>
+
+	stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
+	* lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
+
 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
 
 	getopt-posix: port to mingw
--- a/lib/stat.c	Fri May 12 06:18:50 2017 -0700
+++ b/lib/stat.c	Sat May 13 02:32:24 2017 +0200
@@ -32,13 +32,11 @@
 # if _GL_WINDOWS_64_BIT_ST_SIZE
 #  undef stat /* avoid warning on mingw64 with _FILE_OFFSET_BITS=64 */
 #  define stat _stati64
-#  define REPLACE_FUNC_STAT_DIR 1
 #  undef REPLACE_FUNC_STAT_FILE
 # elif REPLACE_FUNC_STAT_FILE
 /* mingw64 has a broken stat() function, based on _stat(), in libmingwex.a.
    Bypass it.  */
 #  define stat _stat
-#  define REPLACE_FUNC_STAT_DIR 1
 #  undef REPLACE_FUNC_STAT_FILE
 # endif
 #endif
@@ -73,15 +71,6 @@
 # include "stat-w32.h"
 #endif
 
-#if REPLACE_FUNC_STAT_DIR
-# include "pathmax.h"
-  /* The only known systems where REPLACE_FUNC_STAT_DIR is needed also
-     have a constant PATH_MAX.  */
-# ifndef PATH_MAX
-#  error "Please port this replacement to your platform"
-# endif
-#endif
-
 #ifdef WINDOWS_NATIVE
 /* Return TRUE if the given file name denotes an UNC root.  */
 static BOOL