Visual C has something resembling a stat function, but it doesn't provide S_ISREG

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-06-04 20:03:06 +00:00
parent 44eaf9b354
commit a833fca56c
4 changed files with 10 additions and 2 deletions

View File

@ -20,7 +20,7 @@
#include "Config/config.h" #include "Config/config.h"
#ifdef HAVE_SYS_MMAN_H #if defined(HAVE_SYS_MMAN_H) && !defined(_MSC_VER)
#include <sys/mman.h> #include <sys/mman.h>
#endif #endif

View File

@ -21,5 +21,9 @@
#include <sys/stat.h> #include <sys/stat.h>
#endif #endif
#if defined(_MSC_VER)
#define S_ISREG(X) ((X) & _S_IFREG)
#endif
#endif #endif

View File

@ -20,7 +20,7 @@
#include "Config/config.h" #include "Config/config.h"
#ifdef HAVE_SYS_MMAN_H #if defined(HAVE_SYS_MMAN_H) && !defined(_MSC_VER)
#include <sys/mman.h> #include <sys/mman.h>
#endif #endif

View File

@ -21,5 +21,9 @@
#include <sys/stat.h> #include <sys/stat.h>
#endif #endif
#if defined(_MSC_VER)
#define S_ISREG(X) ((X) & _S_IFREG)
#endif
#endif #endif