Index: cregex.cpp =================================================================== --- cregex.cpp (revision 41062) +++ cregex.cpp (working copy) @@ -354,7 +354,7 @@ while(dstart != dend) { -#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) +#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) && !defined(UNDER_CE) (::sprintf_s)(buf, sizeof(buf), "%s%s%s", dstart.path(), directory_iterator::separator(), ptr); #else (std::sprintf)(buf, "%s%s%s", dstart.path(), directory_iterator::separator(), ptr);