Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-11-04 12:18:53


Author: bemandawes
Date: 2007-11-04 12:18:53 EST (Sun, 04 Nov 2007)
New Revision: 40744
URL: http://svn.boost.org/trac/boost/changeset/40744

Log:
Workaround MingW doesn't supply GetUserDefaultUILanguage
Text files modified:
   trunk/libs/system/test/system_error_test.cpp | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/libs/system/test/system_error_test.cpp
==============================================================================
--- trunk/libs/system/test/system_error_test.cpp (original)
+++ trunk/libs/system/test/system_error_test.cpp 2007-11-04 12:18:53 EST (Sun, 04 Nov 2007)
@@ -41,7 +41,12 @@
     BOOST_CHECK( ex.code().value() == v );
     BOOST_CHECK( ex.code().category() == system_category );
 # ifdef BOOST_WINDOWS_API
- LANGID language_id = ::GetUserDefaultUILanguage();
+ LANGID language_id;
+# ifndef __MINGW32__
+ language_id = ::GetUserDefaultUILanguage();
+# else
+ language_id = 0x0409; // Assume US English
+# endif
     // std::cout << "GetUserDefaultUILanguage() returns " << language_id << '\n';
     if ( language_id == 0x0409 ) // English (United States)
     {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk