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"