[Openmp-commits] [openmp] d0f4f5a - [OpenMP] Check if _MSC_VER is defined before using it
via Openmp-commits
openmp-commits at lists.llvm.org
Mon Aug 24 07:51:00 PDT 2020
Author: AndreyChurbanov
Date: 2020-08-24T17:50:38+03:00
New Revision: d0f4f5a182d7ea91150ae090563bc0095e8ca1b3
URL: https://github.com/llvm/llvm-project/commit/d0f4f5a182d7ea91150ae090563bc0095e8ca1b3
DIFF: https://github.com/llvm/llvm-project/commit/d0f4f5a182d7ea91150ae090563bc0095e8ca1b3.diff
LOG: [OpenMP] Check if _MSC_VER is defined before using it
Patch by mati865 at gmail.com
Differential Revision: https://reviews.llvm.org/D86448
Added:
Modified:
openmp/runtime/src/kmp_atomic.h
Removed:
################################################################################
diff --git a/openmp/runtime/src/kmp_atomic.h b/openmp/runtime/src/kmp_atomic.h
index bb01c31646db..8f70928ca985 100644
--- a/openmp/runtime/src/kmp_atomic.h
+++ b/openmp/runtime/src/kmp_atomic.h
@@ -39,7 +39,7 @@
#define KMP_DO_ALIGN(alignment) /* Nothing */
#endif
-#if (_MSC_VER < 1600) && defined(_DEBUG)
+#if defined(_MSC_VER) && (_MSC_VER < 1600) && defined(_DEBUG)
// Workaround for the problem of _DebugHeapTag unresolved external.
// This problem prevented to use our static debug library for C tests
// compiled with /MDd option (the library itself built with /MTd),
More information about the Openmp-commits
mailing list