1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-20 03:52:25 +03:00

Trying to fix CR/LF troubles, Daniel

This commit is contained in:
Daniel Veillard
2005-07-04 17:12:01 +00:00
parent 73c0f71a58
commit cfbb0dd89a
2 changed files with 17 additions and 12 deletions

View File

@@ -11,7 +11,6 @@
#endif
#include <string.h>
#include <stdio.h>
#include <glob.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -46,11 +45,17 @@ static int checkTestFile(const char *filename) {
if (stat(filename, &buf) == -1)
return(0);
#if defined(_WIN32) && !defined(__CYGWIN__)
if (!(buf.st_mode & _S_IFREG))
return(0);
#else
if (!S_ISREG(buf.st_mode))
return(0);
#endif
return(1);
}
static xmlChar *composeDir(const xmlChar *dir, const xmlChar *path) {
char buf[500];