forked from lthn/blockchain
fixed compilation issues with windows/warning for paindroid
This commit is contained in:
parent
67b84d341d
commit
254a2dcb6e
2 changed files with 8 additions and 6 deletions
|
|
@ -37,7 +37,7 @@ namespace epee
|
|||
{
|
||||
|
||||
template<class pack_value, class t_stream>
|
||||
size_t pack_varint_t(t_stream& strm, uint8_t type_or, size_t& pv)
|
||||
size_t pack_varint_t(t_stream& strm, uint8_t type_or, const uint64_t& pv)
|
||||
{
|
||||
pack_value v = (*((pack_value*)&pv)) << 2;
|
||||
v |= type_or;
|
||||
|
|
@ -48,7 +48,7 @@ namespace epee
|
|||
PUSH_GCC_WARNINGS
|
||||
DISABLE_GCC_WARNING(strict-aliasing)
|
||||
template<class t_stream>
|
||||
size_t pack_varint(t_stream& strm, size_t val)
|
||||
size_t pack_varint(t_stream& strm, uint64_t val)
|
||||
{ //the first two bits always reserved for size information
|
||||
|
||||
if(val <= 63)
|
||||
|
|
|
|||
|
|
@ -14,9 +14,11 @@ std::atomic<bool> initialized(false);
|
|||
|
||||
#define ANDROID_PACKAGE_NAME "com.zano_mobile"
|
||||
#ifdef IOS_BUILD
|
||||
#define HOME_FOLDER "Documents"
|
||||
#define HOME_FOLDER "Documents"
|
||||
#elif ANDROID_BUILD
|
||||
#define HOME_FOLDER "files"
|
||||
#define HOME_FOLDER "files"
|
||||
#else
|
||||
#define HOME_FOLDER ""
|
||||
#endif
|
||||
#define WALLETS_FOLDER_NAME "wallets"
|
||||
|
||||
|
|
@ -48,9 +50,10 @@ namespace plain_wallet
|
|||
{
|
||||
#ifdef WIN32
|
||||
return "";
|
||||
#endif // WIN32
|
||||
#else
|
||||
std::string path = get_bundle_root_dir() + "/" + HOME_FOLDER + "/" + WALLETS_FOLDER_NAME + "/";
|
||||
return path;
|
||||
#endif // WIN32
|
||||
}
|
||||
|
||||
void initialize_logs()
|
||||
|
|
@ -157,7 +160,6 @@ namespace plain_wallet
|
|||
}
|
||||
gwm.run_wallet(ok_response.result.wallet_id);
|
||||
return epee::serialization::store_t_to_json(ok_response);
|
||||
return;
|
||||
}
|
||||
error_response err_result = AUTO_VAL_INIT(err_result);
|
||||
err_result.error.code = rsp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue