Skip to content

Commit 4a1a954

Browse files
authored
Added CPP guard for header files (#90)
1 parent 5a27f8f commit 4a1a954

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/include/shadow.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
/* Standard includes. */
3232
#include <stdint.h>
3333

34+
/* *INDENT-OFF* */
35+
#ifdef __cplusplus
36+
extern "C" {
37+
#endif
38+
/* *INDENT-ON* */
39+
3440
/* SHADOW_DO_NOT_USE_CUSTOM_CONFIG allows building the Shadow library
3541
* without a custom config. If a custom config is provided, the
3642
* SHADOW_DO_NOT_USE_CUSTOM_CONFIG macro should not be defined. */
@@ -1055,4 +1061,10 @@ ShadowStatus_t Shadow_MatchTopic( const char * pTopic,
10551061
uint16_t * pThingNameLength );
10561062
/* @[declare_shadow_matchtopic] */
10571063

1064+
/* *INDENT-OFF* */
1065+
#ifdef __cplusplus
1066+
}
1067+
#endif
1068+
/* *INDENT-ON* */
1069+
10581070
#endif /* ifndef SHADOW_H_ */

0 commit comments

Comments
 (0)