clang-format
This commit is contained in:
parent
56ee3d4820
commit
5fa1938691
|
@ -72,8 +72,7 @@ namespace util {
|
|||
|
||||
#ifdef _WIN32
|
||||
// inet_pton-wrapper for Windows
|
||||
static int inet_pton(int af, const char *src, void *dst)
|
||||
{
|
||||
static int inet_pton(int af, const char *src, void *dst) {
|
||||
#if _WIN32_WINNT >= 0x0600
|
||||
return InetPtonA(af, src, dst);
|
||||
#else
|
||||
|
@ -91,7 +90,6 @@ static int inet_pton(int af, const char *src, void *dst)
|
|||
}
|
||||
#endif // _WIN32
|
||||
|
||||
|
||||
const char UPPER_XDIGITS[] = "0123456789ABCDEF";
|
||||
|
||||
bool in_rfc3986_unreserved_chars(const char c) {
|
||||
|
@ -383,7 +381,8 @@ char *iso8601_date(char *res, int64_t ms) {
|
|||
namespace bt = boost::posix_time;
|
||||
// one-time definition of the locale that is used to parse UTC strings
|
||||
// (note that the time_input_facet is ref-counted and deleted automatically)
|
||||
static const std::locale ptime_locale(std::locale::classic(),
|
||||
static const std::locale
|
||||
ptime_locale(std::locale::classic(),
|
||||
new bt::time_input_facet("%a, %d %b %Y %H:%M:%S GMT"));
|
||||
#endif //_WIN32
|
||||
|
||||
|
|
Loading…
Reference in New Issue