From 56d9e4d968930554b7e1c55044678d2862398ea6 Mon Sep 17 00:00:00 2001 From: Peter Conrad Date: Tue, 26 Nov 2019 08:26:16 +0100 Subject: [PATCH] Fix for OSX build --- include/fc/reflect/typename.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/fc/reflect/typename.hpp b/include/fc/reflect/typename.hpp index 15b8523..23a116b 100644 --- a/include/fc/reflect/typename.hpp +++ b/include/fc/reflect/typename.hpp @@ -18,6 +18,9 @@ namespace fc { namespace ip { class address; } template struct get_typename; +#if defined(__APPLE__) or defined(__OpenBSD__) + template<> struct get_typename { static const char* name() { return "size_t"; } }; +#endif template<> struct get_typename { static const char* name() { return "int32_t"; } }; template<> struct get_typename { static const char* name() { return "int64_t"; } }; template<> struct get_typename { static const char* name() { return "int16_t"; } };