Add extern "C" to header files.

Update issue 35
Status: FixedInGit
This commit is contained in:
Petteri Aimonen
2012-10-29 19:03:19 +02:00
parent db1eefc24b
commit 3aaa4ad8c2
3 changed files with 23 additions and 1 deletions

View File

@@ -12,6 +12,10 @@
#include <stdbool.h>
#include "pb.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Lightweight input stream.
* You can provide a callback function for reading or use
* pb_istream_from_buffer.
@@ -102,4 +106,8 @@ bool pb_skip_varint(pb_istream_t *stream);
bool pb_skip_string(pb_istream_t *stream);
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif