Boost C++ Libraries: Ticket #13600: Conflicting types for 'InitializeCriticalSection' https://svn.boost.org/trac10/ticket/13600 <p> When compiling with Visual C++ 2017 LLVM-vs2017 toolset (CLang), the following code produces "fatal error : conflicting types for <a class="missing wiki">InitializeCriticalSection</a>?": </p> <blockquote> <p> #include &lt;windows.h&gt; #include &lt;boost/signals2.hpp&gt; </p> </blockquote> <p> The error happens at line 55 in </p> <p> <a href="http://www.boost.org/doc/libs/1_66_0/boost/signals2/detail/lwm_win32_cs.hpp">http://www.boost.org/doc/libs/1_66_0/boost/signals2/detail/lwm_win32_cs.hpp</a> </p> <p> which reads </p> <p> extern "C" <span class="underline">declspec(dllimport) void </span>stdcall <a class="missing wiki">InitializeCriticalSection</a>(critical_section *); </p> <p> This bug is similar to <a class="ext-link" href="https://svn.boost.org/trac10/ticket/12927"><span class="icon">​</span>https://svn.boost.org/trac10/ticket/12927</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13600 Trac 1.4.3 Frank Mori Hess Fri, 15 Jun 2018 19:16:12 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/13600#comment:1 https://svn.boost.org/trac10/ticket/13600#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> I believe this has already been fixed in boost 1.67. Feel free to reopen if I'm wrong. </p> Ticket