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:
@@ -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];
|
||||
|
||||
|
Reference in New Issue
Block a user