[Openmp-commits] [PATCH] D86448: [OpenMP] Check if `_MSC_VER` is defined before using it

Andrey Churbanov via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Aug 24 07:51:02 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd0f4f5a182d7: [OpenMP] Check if _MSC_VER is defined before using it (authored by AndreyChurbanov).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86448/new/

https://reviews.llvm.org/D86448

Files:
  openmp/runtime/src/kmp_atomic.h


Index: openmp/runtime/src/kmp_atomic.h
===================================================================
--- openmp/runtime/src/kmp_atomic.h
+++ 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),


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86448.287397.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200824/768ed1b5/attachment-0001.bin>


More information about the Openmp-commits mailing list