diff --git a/include/hip/hcc_detail/hip_runtime_api.h b/include/hip/hcc_detail/hip_runtime_api.h index ccfe7aefc3..bfc9938171 100644 --- a/include/hip/hcc_detail/hip_runtime_api.h +++ b/include/hip/hcc_detail/hip_runtime_api.h @@ -2966,7 +2966,9 @@ hipError_t hipLaunchByPtr(const void* func); } /* extern "c" */ #endif +#ifdef __cplusplus #include +#endif #ifdef __cplusplus extern "C" {