diff --git a/components/bt/esp_ble_mesh/mesh_common/include/mesh_types.h b/components/bt/esp_ble_mesh/mesh_common/include/mesh_types.h index 5a189630cd..8af8b60754 100644 --- a/components/bt/esp_ble_mesh/mesh_common/include/mesh_types.h +++ b/components/bt/esp_ble_mesh/mesh_common/include/mesh_types.h @@ -28,6 +28,7 @@ typedef unsigned long long u64_t; typedef int bt_mesh_atomic_t; +#ifndef __cplusplus #ifndef bool #define bool int8_t #endif @@ -39,6 +40,7 @@ typedef int bt_mesh_atomic_t; #ifndef true #define true 1 #endif +#endif #ifndef PRIu64 #define PRIu64 "llu"