Make sure macros in the include subdirectory are not used without being defined.
[oota-llvm.git] / include / llvm / Support / Compiler.h
index 4f5b8f82392adb9aaa6a985cacbaac95affcd4d8..1136ff70c370fb85a40d07071382ee4f7517fdb6 100644 (file)
@@ -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