linux port
This commit is contained in:
parent
747d35d922
commit
6c3b31873c
3 changed files with 9 additions and 0 deletions
|
|
@ -58,6 +58,9 @@ namespace fc
|
||||||
void from_variant( const variant& var, time_point_sec& vo );
|
void from_variant( const variant& var, time_point_sec& vo );
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
void to_variant( size_t s, variant& v );
|
void to_variant( size_t s, variant& v );
|
||||||
|
#elif !defined(_MSC_VER)
|
||||||
|
void to_variant( long long int s, variant& v );
|
||||||
|
void to_variant( unsigned long long int s, variant& v );
|
||||||
#endif
|
#endif
|
||||||
void to_variant( const std::string& s, variant& v );
|
void to_variant( const std::string& s, variant& v );
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <WinSock2.h>
|
#include <WinSock2.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <arpa/inet.h>
|
||||||
|
|
||||||
namespace fc
|
namespace fc
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -652,5 +652,10 @@ string format_string( const string& format, const variant_object& args )
|
||||||
}
|
}
|
||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#elif !defined(_MSC_VER)
|
||||||
|
void to_variant( long long int s, variant& v ) { v = variant( int64_t(s) ); }
|
||||||
|
void to_variant( unsigned long long int s, variant& v ) { v = variant( uint16_t(s)); }
|
||||||
|
#endif
|
||||||
|
|
||||||
} // namespace fc
|
} // namespace fc
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue