Added missing `#ifdef __cplusplus`.