Fix duplicate symbol on OS X.

pull/13171/head
Josh Haberman 13 years ago
parent c16c978193
commit bf0308ebc5
  1. 2
      bindings/cpp/upb/msg.hpp

@ -44,7 +44,7 @@ template <typename T> static FieldHandlers::ValueHandler* GetValueHandler();
// C++ type. // C++ type.
#define GET_VALUE_HANDLER(type, ctype) \ #define GET_VALUE_HANDLER(type, ctype) \
template <> \ template <> \
FieldHandlers::ValueHandler* GetValueHandler<ctype>() { \ inline FieldHandlers::ValueHandler* GetValueHandler<ctype>() { \
return &upb_stdmsg_set ## type; \ return &upb_stdmsg_set ## type; \
} }

Loading…
Cancel
Save