From 7b5046df26117d68b3c93f1e2a1fd2c392784095 Mon Sep 17 00:00:00 2001 From: sunsuodong Date: Thu, 5 Aug 2021 21:40:37 +0800 Subject: [PATCH] fix vs build --- mindspore/core/mindrt/src/thread/actor_threadpool.cc | 2 ++ mindspore/core/mindrt/src/thread/threadpool.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mindspore/core/mindrt/src/thread/actor_threadpool.cc b/mindspore/core/mindrt/src/thread/actor_threadpool.cc index 6a6aedb4a98..58966fca13b 100644 --- a/mindspore/core/mindrt/src/thread/actor_threadpool.cc +++ b/mindspore/core/mindrt/src/thread/actor_threadpool.cc @@ -13,8 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#ifndef _MSC_VER #include #include +#endif #include "thread/actor_threadpool.h" #include "thread/core_affinity.h" diff --git a/mindspore/core/mindrt/src/thread/threadpool.cc b/mindspore/core/mindrt/src/thread/threadpool.cc index 1e7293f23bb..fec5dedfd8f 100644 --- a/mindspore/core/mindrt/src/thread/threadpool.cc +++ b/mindspore/core/mindrt/src/thread/threadpool.cc @@ -13,8 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#ifndef _MSC_VER #include #include +#endif #include "thread/threadpool.h" #include "thread/core_affinity.h"