commit | bbbd9bf7b288c8ec70fdf4457ab29405f39e5671 | [log] [tgz] |
---|---|---|
author | Jussi Keranen <jussike@gmail.com> | Tue Sep 20 17:09:37 2022 +0300 |
committer | Jussi Keranen <jussike@gmail.com> | Tue Sep 20 17:09:37 2022 +0300 |
tree | b37d9798ba9b42db629bbb264b26535ff0677b0e | |
parent | 23993cf1169af5c74a892190cc2bf044737ff468 [diff] |
Allow including inside of extern C
diff --git a/pb.h b/pb.h index a1d7057..2eee7dc 100644 --- a/pb.h +++ b/pb.h
@@ -902,10 +902,13 @@ #define PB_INLINE_CONSTEXPR PB_CONSTEXPR #endif // __cplusplus >= 201703L +extern "C++" +{ namespace nanopb { // Each type will be partially specialized by the generator. template <typename GenMessageT> struct MessageDescriptor; } // namespace nanopb +} #endif /* __cplusplus */ #endif