Disabled use of MS-specific narrow character functions when _WIN32_WCE is defined.

[SVN r41143]
This commit is contained in:
John Maddock
2007-11-16 12:00:32 +00:00
parent bed800b315
commit 326f120ffd
2 changed files with 3 additions and 3 deletions

View File

@ -354,7 +354,7 @@ void BuildFileList(std::list<std::string>* pl, const char* files, bool recurse)
while(dstart != dend) 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); (::sprintf_s)(buf, sizeof(buf), "%s%s%s", dstart.path(), directory_iterator::separator(), ptr);
#else #else
(std::sprintf)(buf, "%s%s%s", dstart.path(), directory_iterator::separator(), ptr); (std::sprintf)(buf, "%s%s%s", dstart.path(), directory_iterator::separator(), ptr);

View File

@ -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(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); (::sprintf_s)(localbuf, 5, "%d", i);
#else #else
(std::sprintf)(localbuf, "%d", i); (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; 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); (::sprintf_s)(localbuf, 5, "%d", 0);
#else #else
(std::sprintf)(localbuf, "%d", 0); (std::sprintf)(localbuf, "%d", 0);