commit | f5972dbec335cdc76ece7d16def98cb8fcef6666 | [log] [tgz] |
---|---|---|
author | Laurence Lundblade <lgl@securitytheory.com> | Fri Aug 06 19:45:23 2021 -0700 |
committer | Laurence Lundblade <lgl@securitytheory.com> | Fri Aug 06 19:45:23 2021 -0700 |
tree | a1202efcf636b4e8d99f76166a3f1a08c3f7a2e4 | |
parent | d8022393c9710a8b3f6cf136dc754762a758f768 [diff] [blame] |
Do not use compound literals when used with C++
diff --git a/example.h b/example.h index b5bcf4b..73c7cc0 100644 --- a/example.h +++ b/example.h
@@ -13,8 +13,19 @@ #ifndef qcborExample_h #define qcborExample_h +#ifdef __cplusplus +extern "C" { +#if 0 +} /* Keep editor indention formatting happy */ +#endif +#endif + #include <stdint.h> int32_t RunQCborExample(void); +#ifdef __cplusplus +} +#endif + #endif /* qcborExample_h */