forked from boostorg/regex
@ -21,6 +21,7 @@
|
|||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <boost/regex.hpp>
|
#include <boost/regex.hpp>
|
||||||
#include <boost/cregex.hpp>
|
#include <boost/cregex.hpp>
|
||||||
|
#include <boost/cstdint.hpp>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
#if defined(BOOST_NO_STDC_NAMESPACE)
|
#if defined(BOOST_NO_STDC_NAMESPACE)
|
||||||
@ -176,7 +177,9 @@ BOOST_REGEX_DECL regsize_t BOOST_REGEX_CCALL regerrorA(int code, const regex_tA*
|
|||||||
// We're converting an integer i to a string, and since i <= REG_E_UNKNOWN
|
// We're converting an integer i to a string, and since i <= REG_E_UNKNOWN
|
||||||
// a five character string is *always* large enough:
|
// a five character string is *always* large enough:
|
||||||
//
|
//
|
||||||
#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) && !defined(_WIN32_WCE) && !defined(UNDER_CE)
|
#if BOOST_CXX_VERSION >= 201103
|
||||||
|
int r = (std::snprintf)(localbuf, 5, "%d", i);
|
||||||
|
#elif BOOST_WORKAROUND(BOOST_MSVC, >= 1400) && !defined(_WIN32_WCE) && !defined(UNDER_CE)
|
||||||
int r = (::sprintf_s)(localbuf, 5, "%d", i);
|
int r = (::sprintf_s)(localbuf, 5, "%d", i);
|
||||||
#else
|
#else
|
||||||
int r = (std::sprintf)(localbuf, "%d", i);
|
int r = (std::sprintf)(localbuf, "%d", i);
|
||||||
@ -188,7 +191,9 @@ 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) && !defined(_WIN32_WCE) && !defined(UNDER_CE)
|
#if BOOST_CXX_VERSION >= 201103
|
||||||
|
int r = (::snprintf)(localbuf, 5, "%d", 0);
|
||||||
|
#elif BOOST_WORKAROUND(BOOST_MSVC, >= 1400) && !defined(_WIN32_WCE) && !defined(UNDER_CE)
|
||||||
int r = (::sprintf_s)(localbuf, 5, "%d", 0);
|
int r = (::sprintf_s)(localbuf, 5, "%d", 0);
|
||||||
#else
|
#else
|
||||||
int r = (std::sprintf)(localbuf, "%d", 0);
|
int r = (std::sprintf)(localbuf, "%d", 0);
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include <boost/regex.hpp>
|
#include <boost/regex.hpp>
|
||||||
#include <boost/cregex.hpp>
|
#include <boost/cregex.hpp>
|
||||||
|
#include <boost/cstdint.hpp>
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
Reference in New Issue
Block a user