Skip to content

Commit e74c391

Browse files
stephanosiocarlescufi
authored andcommitted
drivers: sdhc: Fix C++ compilation
Fix invalid references to the nonexistent `_cplusplus` definition. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent b171515 commit e74c391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/zephyr/drivers/sdhc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @{
2222
*/
2323

24-
#ifdef _cplusplus
24+
#ifdef __cplusplus
2525
extern "C" {
2626
#endif
2727

@@ -429,7 +429,7 @@ static inline int z_impl_sdhc_get_host_props(const struct device *dev,
429429
* @}
430430
*/
431431

432-
#ifdef _cplusplus
432+
#ifdef __cplusplus
433433
}
434434
#endif
435435

0 commit comments

Comments
 (0)