From 5a7ffcb0abea0631ce7bfceb77e1b65accc64626 Mon Sep 17 00:00:00 2001 From: Nick Little Date: Sat, 14 Jul 2018 11:34:29 -0500 Subject: [PATCH] Fix Visual Studio compile issue --- aeron-client/src/main/cpp/concurrent/AgentRunner.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/aeron-client/src/main/cpp/concurrent/AgentRunner.h b/aeron-client/src/main/cpp/concurrent/AgentRunner.h index e6e224af1c..53659aa0c4 100644 --- a/aeron-client/src/main/cpp/concurrent/AgentRunner.h +++ b/aeron-client/src/main/cpp/concurrent/AgentRunner.h @@ -22,8 +22,10 @@ #include #include #include -#include +#if !defined(AERON_COMPILER_MSVC) +#include +#endif namespace aeron { @@ -71,7 +73,8 @@ class AgentRunner { m_thread = std::thread([&]() { -#if defined(Darwin) +#if defined(AERON_COMPILER_MSVC) +#elif defined(Darwin) pthread_setname_np(m_name.c_str()); #else pthread_setname_np(pthread_self(), m_name.c_str());