From d8fb0a23c8df99c620563e57d30d8af5ae489c51 Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 14 Sep 2014 11:38:34 -0400 Subject: [PATCH] compatibility with VS2013 --- SOCKS.cpp | 10 +++++----- SOCKS.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SOCKS.cpp b/SOCKS.cpp index 7243a8d8..7f6174cc 100644 --- a/SOCKS.cpp +++ b/SOCKS.cpp @@ -10,8 +10,8 @@ namespace i2p { namespace proxy { - constexpr uint8_t socks_leaseset_timeout = 10; - constexpr uint8_t socks_timeout = 60; + const uint8_t socks_leaseset_timeout = 10; + const uint8_t socks_timeout = 60; void SOCKS4AHandler::AsyncSockRead() { @@ -80,9 +80,9 @@ namespace proxy } } - constexpr size_t socks_hostname_size = 1024; - constexpr size_t socks_ident_size = 1024; - constexpr size_t destb32_len = 52; + const size_t socks_hostname_size = 1024; + const size_t socks_ident_size = 1024; + const size_t destb32_len = 52; void SOCKS4AHandler::HandleSockForward(const boost::system::error_code & ecode, std::size_t len) { diff --git a/SOCKS.h b/SOCKS.h index 79f8b4ca..6b9dc9d4 100644 --- a/SOCKS.h +++ b/SOCKS.h @@ -14,7 +14,7 @@ namespace i2p namespace proxy { - constexpr size_t socks_buffer_size = 8192; + const size_t socks_buffer_size = 8192; class SOCKS4AHandler {