Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76650 - trunk/libs/filesystem/v3/src
From: bdawes_at_[hidden]
Date: 2012-01-23 07:12:17


Author: bemandawes
Date: 2012-01-23 07:12:17 EST (Mon, 23 Jan 2012)
New Revision: 76650
URL: http://svn.boost.org/trac/boost/changeset/76650

Log:
Some distributions of mingw as early as GLIBCXX__ 20110325 have _stricmp, but the offical 4.6.2 release with __GLIBCXX__ 20111026 doesn't. Play it safe for now, and only use _stricmp if _MSC_VER is defined.
Text files modified:
   trunk/libs/filesystem/v3/src/operations.cpp | 5 ++++-
   1 files changed, 4 insertions(+), 1 deletions(-)

Modified: trunk/libs/filesystem/v3/src/operations.cpp
==============================================================================
--- trunk/libs/filesystem/v3/src/operations.cpp (original)
+++ trunk/libs/filesystem/v3/src/operations.cpp 2012-01-23 07:12:17 EST (Mon, 23 Jan 2012)
@@ -502,7 +502,10 @@
       || errval == ERROR_BAD_NETPATH; // "//nosuch" on Win32
   }
 
-#if defined(_MSC_VER) || (defined(__GLIBCXX__) && __GLIBCXX__ >= 20110325)
+// some distributions of mingw as early as GLIBCXX__ 20110325 have _stricmp, but the
+// offical 4.6.2 release with __GLIBCXX__ 20111026 doesn't. Play it safe for now, and
+// only use _stricmp if _MSC_VER is defined
+#if defined(_MSC_VER) // || (defined(__GLIBCXX__) && __GLIBCXX__ >= 20110325)
 # define BOOST_FILESYSTEM_STRICMP _stricmp
 #else
 # define BOOST_FILESYSTEM_STRICMP strcmp


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