From 326f120ffd1e22de11106ecebcd2f760aafb9859 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 16 Nov 2007 12:00:32 +0000 Subject: [PATCH] Disabled use of MS-specific narrow character functions when _WIN32_WCE is defined. [SVN r41143] --- src/cregex.cpp | 2 +- src/posix_api.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cregex.cpp b/src/cregex.cpp index 2a9adc26..64811a03 100644 --- a/src/cregex.cpp +++ b/src/cregex.cpp @@ -354,7 +354,7 @@ void BuildFileList(std::list* pl, const char* files, bool recurse) while(dstart != dend) { -#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) +#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) && !defined(_WIN32_WCE) (::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); diff --git a/src/posix_api.cpp b/src/posix_api.cpp index 64cb5dc2..f1a8b87e 100644 --- a/src/posix_api.cpp +++ b/src/posix_api.cpp @@ -164,7 +164,7 @@ BOOST_REGEX_DECL regsize_t BOOST_REGEX_CCALL regerrorA(int code, const regex_tA* { if(std::strcmp(e->re_endp, names[i]) == 0) { -#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) +#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) && !defined(_WIN32_WCE) (::sprintf_s)(localbuf, 5, "%d", i); #else (std::sprintf)(localbuf, "%d", i); @@ -174,7 +174,7 @@ BOOST_REGEX_DECL regsize_t BOOST_REGEX_CCALL regerrorA(int code, const regex_tA* return std::strlen(localbuf) + 1; } } -#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) +#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) && !defined(_WIN32_WCE) (::sprintf_s)(localbuf, 5, "%d", 0); #else (std::sprintf)(localbuf, "%d", 0);