]> Savannah Git Hosting - gnulib.git/commitdiff
stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
authorBruno Haible <bruno@clisp.org>
Sat, 13 May 2017 00:32:24 +0000 (02:32 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 13 May 2017 00:32:24 +0000 (02:32 +0200)
* lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.

ChangeLog
lib/stat.c

index c342f6c4a1db8b79a49d1a408a45c8e093c53bde..17f835dd92414fe51085da35118a5ab376a5a420 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 1954449902e316b92df77cd7ad960ea8adbc529c..696f3d643a4f06f3d2a7bafa0df1f7febb3f817b 100644 (file)
 # 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 @@ orig_stat (const char *filename, struct stat *buf)
 # 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