[Boost-bugs] [Boost C++ Libraries] #12927: Conflicting types for 'InitializeCriticalSection'

Subject: [Boost-bugs] [Boost C++ Libraries] #12927: Conflicting types for 'InitializeCriticalSection'
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-03-23 20:58:04


#12927: Conflicting types for 'InitializeCriticalSection'
---------------------------+------------------------------
 Reporter: kaba <kaba@…> | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.63.0
 Severity: Problem | Keywords:
---------------------------+------------------------------
 When compiling with Visual C++ 2017 Clang/C2 v141_clang_c2 toolset, the
 following code produces "fatal error : conflicting types for
 InitializeCriticalSection":

 {{{
     #include <windows.h>
     #include <boost/math/special_functions/bernoulli.hpp>
 }}}

 The error happens at line 52 in

 http://www.boost.org/doc/libs/1_63_0/boost/smart_ptr/detail/lwm_win32_cs.hpp

 which reads
 {{{
 extern "C" __declspec(dllimport) void __stdcall
 InitializeCriticalSection(critical_section *);
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12927>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-03-23 21:02:31 UTC