commit | ccab5d12788526f3c56c6cbcd742072a05474bc8 | [log] [tgz] |
---|---|---|
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | Tue Sep 20 18:41:16 2022 +0300 |
committer | GitHub <noreply@github.com> | Tue Sep 20 18:41:16 2022 +0300 |
tree | b37d9798ba9b42db629bbb264b26535ff0677b0e | |
parent | 23993cf1169af5c74a892190cc2bf044737ff468 [diff] | |
parent | bbbd9bf7b288c8ec70fdf4457ab29405f39e5671 [diff] |
Merge pull request #814 from jussike/master 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