Code: Select all
#if defined(__cplusplus)
extern "C" {
#endif
/* place function prototypes here */
#if defined(__cplusplus)
}
#endif
Doing so simplifies using the SDK routines in C++ files. While it is true that we users can simply wrap the #includes with the same #ifdef, it is something that is expected to be present in professionally produced code.