Make sure macros in the include subdirectory are not used without being defined.
[oota-llvm.git] / include / llvm / Support / FileSystem.h
index bffc234f93db423841589928128c8456f8e868d0..5d6020502dc68bc94ca90afdc17c41c3d7be7af3 100644 (file)
@@ -40,7 +40,7 @@
 #include <string>
 #include <vector>
 
-#if HAVE_SYS_STAT_H
+#ifdef HAVE_SYS_STAT_H
 #include <sys/stat.h>
 #endif
 
@@ -596,7 +596,7 @@ private:
   mapmode Mode;
   uint64_t Size;
   void *Mapping;
-#if LLVM_ON_WIN32
+#ifdef LLVM_ON_WIN32
   int FileDescriptor;
   void *FileHandle;
   void *FileMappingHandle;