diff options
Diffstat (limited to 'upb/decode.h')
-rw-r--r-- | upb/decode.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/upb/decode.h b/upb/decode.h index 224e606..d21b659 100644 --- a/upb/decode.h +++ b/upb/decode.h @@ -7,11 +7,15 @@ #include "upb/msg.h" -UPB_BEGIN_EXTERN_C +#ifdef __cplusplus +extern "C" { +#endif bool upb_decode(const char *buf, size_t size, upb_msg *msg, const upb_msglayout *l); -UPB_END_EXTERN_C +#ifdef __cplusplus +} /* extern "C" */ +#endif #endif /* UPB_DECODE_H_ */ |