Merge pull request #181 from pmconrad/2070_osx_fix

Fix for OSX build
This commit is contained in:
Alfredo Garcia 2019-11-26 10:21:25 -03:00 committed by GitHub
commit 8474e84997
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,9 @@ namespace fc {
namespace ip { class address; }
template<typename... T> struct get_typename;
#if defined(__APPLE__) or defined(__OpenBSD__)
template<> struct get_typename<size_t> { static const char* name() { return "size_t"; } };
#endif
template<> struct get_typename<int32_t> { static const char* name() { return "int32_t"; } };
template<> struct get_typename<int64_t> { static const char* name() { return "int64_t"; } };
template<> struct get_typename<int16_t> { static const char* name() { return "int16_t"; } };