Commits

Anonymous committed ea8b038

r2473@LENOVO-6D4C2336: sugawara | 2008-09-13 21:24:43 +0900

Comments (0)

Files changed (1)

ext/libtar/compat/glob.c

 #ifdef _WIN32
 #pragma warning(disable:4101)
 #pragma warning(disable:4244)
-#include "tarruby_stat.h"
 #endif
 
 #if defined(LIBC_SCCS) && !defined(lint)
 #define __P(protos) protos
 #define S_ISDIR(m)  (((m) & (_S_IFMT)) == (_S_IFDIR))
 #define S_ISLNK(m)  (0)
-#define lstat(p, b) tarruby_stat((p), (b))
+#define lstat(p, b) stat((p), (b))
 #endif
 
 static int	 compare (const void *, const void *);
 	g_Ctoc(fn, buf);
 	if (pglob->gl_flags & GLOB_ALTDIRFUNC)
 		return((*pglob->gl_stat)(buf, sb));
-#ifndef _WIN32
 	return(stat(buf, sb));
-#else
-	return(tarruby_stat(buf, sb));
-#endif
 }
 
 static Char *