[Boost-bugs] [Boost C++ Libraries] #7468: asio/detail/config.hpp defines _WIN32_WINNT even under WinCE

Subject: [Boost-bugs] [Boost C++ Libraries] #7468: asio/detail/config.hpp defines _WIN32_WINNT even under WinCE
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-04 13:30:08


#7468: asio/detail/config.hpp defines _WIN32_WINNT even under WinCE
-------------------------------+--------------------------------------------
 Reporter: listhex@… | Owner: chris_kohlhoff
     Type: Patches | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: |
-------------------------------+--------------------------------------------
 Boost.Asio defines _WIN32_WINNT macro even under WinCE environment
 (_WIN32_WCE == 0x500, Visual Studio 2008).

 {{{
 # if !defined(_WIN32_WINNT) && !defined(_WIN32_WINDOWS)
 # if defined(_MSC_VER) || defined(__BORLANDC__)
 # pragma message( \
   "Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
 example:\n"\
   "- add -D_WIN32_WINNT=0x0501 to the compiler command line; or\n"\
   "- add _WIN32_WINNT=0x0501 to your project's Preprocessor
 Definitions.\n"\
   "Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).")
 # else // defined(_MSC_VER) || defined(__BORLANDC__)
 # warning Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately.
 # warning For example, add -D_WIN32_WINNT=0x0501 to the compiler command
 line.
 # warning Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
 # endif // defined(_MSC_VER) || defined(__BORLANDC__)
 # define _WIN32_WINNT 0x0501
 # endif // !defined(_WIN32_WINNT) && !defined(_WIN32_WINDOWS)
 }}}

 Maybe it would better to add some UNDER_CE check here?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7468>
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:10 UTC