mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
moved std::to_string to util.h from android
This commit is contained in:
parent
07cc547bab
commit
a5be4c9d0e
7 changed files with 19 additions and 54 deletions
|
@ -12,12 +12,6 @@
|
|||
#include "Family.h"
|
||||
#include "RouterContext.h"
|
||||
|
||||
#ifdef ANDROID
|
||||
# include "to_string.h"
|
||||
#else
|
||||
# define to_string(x) std::to_string(x)
|
||||
#endif
|
||||
|
||||
namespace i2p
|
||||
{
|
||||
RouterContext context;
|
||||
|
@ -62,7 +56,7 @@ namespace i2p
|
|||
routerInfo.AddNTCPAddress (host.c_str(), port);
|
||||
routerInfo.SetCaps (i2p::data::RouterInfo::eReachable |
|
||||
i2p::data::RouterInfo::eSSUTesting | i2p::data::RouterInfo::eSSUIntroducer); // LR, BC
|
||||
routerInfo.SetProperty ("netId", to_string (I2PD_NET_ID));
|
||||
routerInfo.SetProperty ("netId", std::to_string (I2PD_NET_ID));
|
||||
routerInfo.SetProperty ("router.version", I2P_VERSION);
|
||||
routerInfo.CreateBuffer (m_Keys);
|
||||
m_RouterInfo.SetRouterIdentity (GetIdentity ());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue