diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm-c/Core.h | 2 | ||||
| -rw-r--r-- | llvm/include/llvm/Support/Compiler.h | 2 | ||||
| -rw-r--r-- | llvm/include/llvm/Support/FileSystem.h | 4 | 
3 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index 441fa4d13ab..6587e770800 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h @@ -2688,7 +2688,7 @@ namespace llvm {    template<typename T>    inline T **unwrap(LLVMValueRef *Vals, unsigned Length) { -    #if DEBUG +    #ifdef DEBUG      for (LLVMValueRef *I = Vals, *E = Vals + Length; I != E; ++I)        cast<T>(*I);      #endif diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index 4f5b8f82392..1136ff70c37 100644 --- a/llvm/include/llvm/Support/Compiler.h +++ b/llvm/include/llvm/Support/Compiler.h @@ -24,7 +24,7 @@  /// does not imply the existence of any other C++ library features.  #if (__has_feature(cxx_rvalue_references)   \       || defined(__GXX_EXPERIMENTAL_CXX0X__) \ -     || _MSC_VER >= 1600) +     || (defined(_MSC_VER) && _MSC_VER >= 1600))  #define LLVM_USE_RVALUE_REFERENCES 1  #else  #define LLVM_USE_RVALUE_REFERENCES 0 diff --git a/llvm/include/llvm/Support/FileSystem.h b/llvm/include/llvm/Support/FileSystem.h index bffc234f93d..5d6020502dc 100644 --- a/llvm/include/llvm/Support/FileSystem.h +++ b/llvm/include/llvm/Support/FileSystem.h @@ -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;  | 

