mirror of
https://github.com/boostorg/regex.git
synced 2025-07-14 21:06:38 +02:00
Disabled use of MS-specific narrow character functions when _WIN32_WCE is defined.
[SVN r41143]
This commit is contained in:
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user