From ac577b525641c835654ffc659b4e97e54bf60617 Mon Sep 17 00:00:00 2001 From: Abhinandan Sharma Date: Wed, 21 Oct 2026 14:38:39 +0530 Subject: [PATCH 1/2] [MrBot] Stop including deprecated C compatibility headers in C++ Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- c_pal_ll/interfaces/reals/real_sync.h | 1 - interfaces/inc/c_pal/malloc_multi_flex.h | 1 - interfaces/inc/c_pal/srw_lock.h | 4 +--- interfaces/inc/c_pal/srw_lock_ll.h | 4 +--- interfaces/inc/c_pal/uuid.h | 2 -- interfaces/reals/real_srw_lock.h | 4 +--- interfaces/reals/real_srw_lock_ll.h | 4 +--- interfaces/reals/real_string_utils.h | 4 +--- 8 files changed, 5 insertions(+), 19 deletions(-) diff --git a/c_pal_ll/interfaces/reals/real_sync.h b/c_pal_ll/interfaces/reals/real_sync.h index 9e487474..d38dea4e 100644 --- a/c_pal_ll/interfaces/reals/real_sync.h +++ b/c_pal_ll/interfaces/reals/real_sync.h @@ -5,7 +5,6 @@ #define REAL_SYNC_H #ifdef __cplusplus -#include #include #else #include diff --git a/interfaces/inc/c_pal/malloc_multi_flex.h b/interfaces/inc/c_pal/malloc_multi_flex.h index 1c657837..c0f91225 100644 --- a/interfaces/inc/c_pal/malloc_multi_flex.h +++ b/interfaces/inc/c_pal/malloc_multi_flex.h @@ -6,7 +6,6 @@ #ifdef __cplusplus #include #include -#include #else #include #include diff --git a/interfaces/inc/c_pal/srw_lock.h b/interfaces/inc/c_pal/srw_lock.h index 79024f9e..acf903ed 100644 --- a/interfaces/inc/c_pal/srw_lock.h +++ b/interfaces/inc/c_pal/srw_lock.h @@ -3,9 +3,7 @@ #ifndef SRW_LOCK_H #define SRW_LOCK_H -#ifdef __cplusplus -#include -#else +#ifndef __cplusplus #include #endif diff --git a/interfaces/inc/c_pal/srw_lock_ll.h b/interfaces/inc/c_pal/srw_lock_ll.h index 08c9e323..499a1f2a 100644 --- a/interfaces/inc/c_pal/srw_lock_ll.h +++ b/interfaces/inc/c_pal/srw_lock_ll.h @@ -3,9 +3,7 @@ #ifndef SRW_LOCK_LL_H #define SRW_LOCK_LL_H -#ifdef __cplusplus -#include -#else +#ifndef __cplusplus #include #endif diff --git a/interfaces/inc/c_pal/uuid.h b/interfaces/inc/c_pal/uuid.h index 8708381a..405d127c 100644 --- a/interfaces/inc/c_pal/uuid.h +++ b/interfaces/inc/c_pal/uuid.h @@ -6,8 +6,6 @@ #ifdef __cplusplus #include -#include -#include #else #include #include diff --git a/interfaces/reals/real_srw_lock.h b/interfaces/reals/real_srw_lock.h index 9134f4fe..d7a6095c 100644 --- a/interfaces/reals/real_srw_lock.h +++ b/interfaces/reals/real_srw_lock.h @@ -4,9 +4,7 @@ #ifndef REAL_SRW_LOCK_H #define REAL_SRW_LOCK_H -#ifdef __cplusplus -#include -#else +#ifndef __cplusplus #include #endif diff --git a/interfaces/reals/real_srw_lock_ll.h b/interfaces/reals/real_srw_lock_ll.h index 017f68f0..24801ee9 100644 --- a/interfaces/reals/real_srw_lock_ll.h +++ b/interfaces/reals/real_srw_lock_ll.h @@ -4,9 +4,7 @@ #ifndef REAL_SRW_LOCK_LL_H #define REAL_SRW_LOCK_LL_H -#ifdef __cplusplus -#include -#else +#ifndef __cplusplus #include #endif diff --git a/interfaces/reals/real_string_utils.h b/interfaces/reals/real_string_utils.h index 910e2e17..20445e0b 100644 --- a/interfaces/reals/real_string_utils.h +++ b/interfaces/reals/real_string_utils.h @@ -4,9 +4,7 @@ #ifndef REAL_STRING_UTILS_H #define REAL_STRING_UTILS_H -#ifdef __cplusplus -#include -#else +#ifndef __cplusplus #include #endif From 622c6d8eda5414cffc8e4a47f816d3de46eeb2cf Mon Sep 17 00:00:00 2001 From: Abhinandan Sharma Date: Thu, 22 Oct 2026 13:15:26 +0530 Subject: [PATCH 2/2] [MrBot] Keep ifdef/else convention for C-only stdbool.h includes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- interfaces/inc/c_pal/srw_lock.h | 3 ++- interfaces/inc/c_pal/srw_lock_ll.h | 3 ++- interfaces/reals/real_srw_lock.h | 3 ++- interfaces/reals/real_srw_lock_ll.h | 3 ++- interfaces/reals/real_string_utils.h | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/interfaces/inc/c_pal/srw_lock.h b/interfaces/inc/c_pal/srw_lock.h index acf903ed..c33802a0 100644 --- a/interfaces/inc/c_pal/srw_lock.h +++ b/interfaces/inc/c_pal/srw_lock.h @@ -3,7 +3,8 @@ #ifndef SRW_LOCK_H #define SRW_LOCK_H -#ifndef __cplusplus +#ifdef __cplusplus +#else #include #endif diff --git a/interfaces/inc/c_pal/srw_lock_ll.h b/interfaces/inc/c_pal/srw_lock_ll.h index 499a1f2a..2dd06197 100644 --- a/interfaces/inc/c_pal/srw_lock_ll.h +++ b/interfaces/inc/c_pal/srw_lock_ll.h @@ -3,7 +3,8 @@ #ifndef SRW_LOCK_LL_H #define SRW_LOCK_LL_H -#ifndef __cplusplus +#ifdef __cplusplus +#else #include #endif diff --git a/interfaces/reals/real_srw_lock.h b/interfaces/reals/real_srw_lock.h index d7a6095c..f1e82bb2 100644 --- a/interfaces/reals/real_srw_lock.h +++ b/interfaces/reals/real_srw_lock.h @@ -4,7 +4,8 @@ #ifndef REAL_SRW_LOCK_H #define REAL_SRW_LOCK_H -#ifndef __cplusplus +#ifdef __cplusplus +#else #include #endif diff --git a/interfaces/reals/real_srw_lock_ll.h b/interfaces/reals/real_srw_lock_ll.h index 24801ee9..b4500f19 100644 --- a/interfaces/reals/real_srw_lock_ll.h +++ b/interfaces/reals/real_srw_lock_ll.h @@ -4,7 +4,8 @@ #ifndef REAL_SRW_LOCK_LL_H #define REAL_SRW_LOCK_LL_H -#ifndef __cplusplus +#ifdef __cplusplus +#else #include #endif diff --git a/interfaces/reals/real_string_utils.h b/interfaces/reals/real_string_utils.h index 20445e0b..3735a150 100644 --- a/interfaces/reals/real_string_utils.h +++ b/interfaces/reals/real_string_utils.h @@ -4,7 +4,8 @@ #ifndef REAL_STRING_UTILS_H #define REAL_STRING_UTILS_H -#ifndef __cplusplus +#ifdef __cplusplus +#else #include #endif