LLVM API Documentation
00001 /*===-- Config/sys/stat.h -----------------------------------*- ----C++ -*-===// 00002 * 00003 * The LLVM Compiler Infrastructure 00004 * 00005 * This file was developed by the LLVM research group and is distributed under 00006 * the University of Illinois Open Source License. See LICENSE.TXT for details. 00007 * 00008 *===----------------------------------------------------------------------===// 00009 * This header file includes the headers needed for the stat() system 00010 * call. 00011 * 00012 *===----------------------------------------------------------------------===// 00013 */ 00014 00015 #ifndef _CONFIG_SYS_STAT_H 00016 #define _CONFIG_SYS_STAT_H 00017 00018 #include "llvm/Config/config.h" 00019 00020 #ifdef HAVE_SYS_STAT_H 00021 #include <sys/stat.h> 00022 #endif 00023 00024 #if defined(_MSC_VER) 00025 #define S_ISREG(X) ((X) & _S_IFREG) 00026 #endif 00027 00028 #endif 00029