mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +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"
|
#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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user