Skip to content

Commit

Permalink
Added CPP guard for header files (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianmc1 authored Jul 23, 2021
1 parent 5a27f8f commit 4a1a954
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/include/shadow.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
/* Standard includes. */
#include <stdint.h>

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

/* SHADOW_DO_NOT_USE_CUSTOM_CONFIG allows building the Shadow library
* without a custom config. If a custom config is provided, the
* SHADOW_DO_NOT_USE_CUSTOM_CONFIG macro should not be defined. */
Expand Down Expand Up @@ -1055,4 +1061,10 @@ ShadowStatus_t Shadow_MatchTopic( const char * pTopic,
uint16_t * pThingNameLength );
/* @[declare_shadow_matchtopic] */

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* ifndef SHADOW_H_ */

0 comments on commit 4a1a954

Please sign in to comment.