mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-22 03:31:06 +00:00
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:
parent
44eaf9b354
commit
a833fca56c
@ -20,7 +20,7 @@
|
||||
|
||||
#include "Config/config.h"
|
||||
|
||||
#ifdef HAVE_SYS_MMAN_H
|
||||
#if defined(HAVE_SYS_MMAN_H) && !defined(_MSC_VER)
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
|
@ -21,5 +21,9 @@
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define S_ISREG(X) ((X) & _S_IFREG)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "Config/config.h"
|
||||
|
||||
#ifdef HAVE_SYS_MMAN_H
|
||||
#if defined(HAVE_SYS_MMAN_H) && !defined(_MSC_VER)
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
|
@ -21,5 +21,9 @@
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define S_ISREG(X) ((X) & _S_IFREG)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user