Be a bit more efficient when processing the active and inactive
[oota-llvm.git] / include / Config / sys / stat.h
1 /*===-- Config/sys/stat.h -----------------------------------*- ----C++ -*-===//
2  * 
3  *                     The LLVM Compiler Infrastructure
4  *
5  * This file was developed by the LLVM research group and is distributed under
6  * the University of Illinois Open Source License. See LICENSE.TXT for details.
7  * 
8  *===----------------------------------------------------------------------===//
9  *      This header file includes the headers needed for the stat() system
10  *      call.
11  *
12  *===----------------------------------------------------------------------===//
13  */
14
15 #ifndef _CONFIG_SYS_STAT_H
16 #define _CONFIG_SYS_STAT_H
17
18 #include "Config/config.h"
19
20 #ifdef HAVE_SYS_STAT_H
21 #include <sys/stat.h>
22 #endif
23
24 #if defined(_MSC_VER)
25 #define S_ISREG(X) ((X) & _S_IFREG)
26 #endif
27
28 #endif
29