Re: [Boost-bugs] [Boost C++ Libraries] #1740: date_time includes <windows.h>

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1740: date_time includes <windows.h>
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-08-17 15:15:51


#1740: date_time includes <windows.h>
-----------------------------------+----------------------------------------
  Reporter: Anteru@… | Owner: az_sw_dude
      Type: Bugs | Status: reopened
 Milestone: Boost 1.36.0 | Component: date_time
   Version: Boost 1.39.0 | Severity: Problem
Resolution: | Keywords: windows.h date_time
-----------------------------------+----------------------------------------
Changes (by anonymous):

  * keywords: => windows.h date_time
  * status: closed => reopened
  * version: Boost 1.35.0 => Boost 1.39.0
  * resolution: fixed =>

Comment:

 If you do include windows.h anywhere in boost, you need the following two
 lines of code just above it:

 {{{
 #undef WIN32_LEAN_AND_MEAN // add this...
 #define WIN32_LEAN_AND_MEAN // ...and this
 #include <windows.h>
 }}}

 Otherwise, if some other 3rd party lib includes <windows.h>, it will break
 the build unless the header files are in a very specific order, which is
 extremely tedious to maintain.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/1740#comment:6>
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:01 UTC