Re: [Boost-bugs] [Boost C++ Libraries] #4182: macro redefinition warnings

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4182: macro redefinition warnings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-13 10:18:51


#4182: macro redefinition warnings
-----------------------------------+----------------------------------------
  Reporter: olafvdspek@… | Owner: johnmaddock
      Type: Bugs | Status: closed
 Milestone: Boost 1.43.0 | Component: config
   Version: Boost 1.43.0 | Severity: Problem
Resolution: fixed | Keywords:
-----------------------------------+----------------------------------------

Comment (by anonymous):

 There is another problem with this fix when intsafe.h from the windows sdk
 is included.
 Preventing BOOST_HAS_STDINT_H to get defined removes the warnings.

 {{{
 1>c:\program files (x86)\microsoft visual studio
 10.0\vc\include\stdint.h(72): warning C4005: 'INT8_MIN' : macro
 redefinition
 1> c:\program files (x86)\microsoft
 sdks\windows\v7.0a\include\intsafe.h(144) : see previous definition of
 'INT8_MIN'
 1>c:\program files (x86)\microsoft visual studio
 10.0\vc\include\stdint.h(73): warning C4005: 'INT16_MIN' : macro
 redefinition
 1> c:\program files (x86)\microsoft
 sdks\windows\v7.0a\include\intsafe.h(146) : see previous definition of
 'INT16_MIN'
 1>c:\program files (x86)\microsoft visual studio
 10.0\vc\include\stdint.h(74): warning C4005: 'INT32_MIN' : macro
 redefinition
 1> c:\program files (x86)\microsoft
 sdks\windows\v7.0a\include\intsafe.h(148) : see previous definition of
 'INT32_MIN'
 1>c:\program files (x86)\microsoft visual studio
 10.0\vc\include\stdint.h(76): warning C4005: 'INT8_MAX' : macro
 redefinition
 1> c:\program files (x86)\microsoft
 sdks\windows\v7.0a\include\intsafe.h(167) : see previous definition of
 'INT8_MAX'
 1>c:\program files (x86)\microsoft visual studio
 10.0\vc\include\stdint.h(77): warning C4005: 'INT16_MAX' : macro
 redefinition
 1> c:\program files (x86)\microsoft
 sdks\windows\v7.0a\include\intsafe.h(171) : see previous definition of
 'INT16_MAX'
 1>c:\program files (x86)\microsoft visual studio
 10.0\vc\include\stdint.h(78): warning C4005: 'INT32_MAX' : macro
 redefinition
 1> c:\program files (x86)\microsoft
 sdks\windows\v7.0a\include\intsafe.h(176) : see previous definition of
 'INT32_MAX'
 1>c:\program files (x86)\microsoft visual studio
 10.0\vc\include\stdint.h(79): warning C4005: 'UINT8_MAX' : macro
 redefinition
 1> c:\program files (x86)\microsoft
 sdks\windows\v7.0a\include\intsafe.h(168) : see previous definition of
 'UINT8_MAX'
 1>c:\program files (x86)\microsoft visual studio
 10.0\vc\include\stdint.h(80): warning C4005: 'UINT16_MAX' : macro
 redefinition
 1> c:\program files (x86)\microsoft
 sdks\windows\v7.0a\include\intsafe.h(173) : see previous definition of
 'UINT16_MAX'
 1>c:\program files (x86)\microsoft visual studio
 10.0\vc\include\stdint.h(81): warning C4005: 'UINT32_MAX' : macro
 redefinition
 1> c:\program files (x86)\microsoft
 sdks\windows\v7.0a\include\intsafe.h(178) : see previous definition of
 'UINT32_MAX'
 1>c:\program files (x86)\microsoft visual studio
 10.0\vc\include\stdint.h(149): warning C4005: 'INT64_MIN' : macro
 redefinition
 1> c:\program files (x86)\microsoft
 sdks\windows\v7.0a\include\intsafe.h(152) : see previous definition of
 'INT64_MIN'
 1>c:\program files (x86)\microsoft visual studio
 10.0\vc\include\stdint.h(150): warning C4005: 'INT64_MAX' : macro
 redefinition
 1> c:\program files (x86)\microsoft
 sdks\windows\v7.0a\include\intsafe.h(184) : see previous definition of
 'INT64_MAX'
 1>c:\program files (x86)\microsoft visual studio
 10.0\vc\include\stdint.h(151): warning C4005: 'UINT64_MAX' : macro
 redefinition
 1> c:\program files (x86)\microsoft
 sdks\windows\v7.0a\include\intsafe.h(189) : see previous definition of
 'UINT64_MAX'
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4182#comment:4>
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-02-16 18:50:04 UTC