From bf0308ebc5508d7c045859deda987e488b0801d6 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Sat, 24 Mar 2012 12:33:34 -0700 Subject: Fix duplicate symbol on OS X. --- bindings/cpp/upb/msg.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bindings/cpp') diff --git a/bindings/cpp/upb/msg.hpp b/bindings/cpp/upb/msg.hpp index c7cf1f2..cde1743 100644 --- a/bindings/cpp/upb/msg.hpp +++ b/bindings/cpp/upb/msg.hpp @@ -44,7 +44,7 @@ template static FieldHandlers::ValueHandler* GetValueHandler(); // C++ type. #define GET_VALUE_HANDLER(type, ctype) \ template <> \ - FieldHandlers::ValueHandler* GetValueHandler() { \ + inline FieldHandlers::ValueHandler* GetValueHandler() { \ return &upb_stdmsg_set ## type; \ } -- cgit v1.2.3