From 9b2c50314f8b4df0531687b2777096d7bbe0f515 Mon Sep 17 00:00:00 2001 From: Joseph Julicher Date: Fri, 3 Mar 2023 11:16:11 -0700 Subject: [PATCH 1/2] added portPOINTER_SIZE_TYPE definition to PIC24/dsPIC port --- portable/MPLAB/PIC24_dsPIC/portmacro.h | 1 + 1 file changed, 1 insertion(+) diff --git a/portable/MPLAB/PIC24_dsPIC/portmacro.h b/portable/MPLAB/PIC24_dsPIC/portmacro.h index d05317e6f8c..da1cbca1543 100644 --- a/portable/MPLAB/PIC24_dsPIC/portmacro.h +++ b/portable/MPLAB/PIC24_dsPIC/portmacro.h @@ -51,6 +51,7 @@ extern "C" { #define portSHORT short #define portSTACK_TYPE uint16_t #define portBASE_TYPE short +#define portPOINTER_SIZE_TYPE size_t typedef portSTACK_TYPE StackType_t; typedef short BaseType_t; From 6d038b4a15614accd6133fdb9d2a7e31ea455b26 Mon Sep 17 00:00:00 2001 From: Joseph Julicher Date: Fri, 3 Mar 2023 12:02:44 -0700 Subject: [PATCH 2/2] Added SIZE_MAX definition to PIC24/dsPIC33 --- portable/MPLAB/PIC24_dsPIC/portmacro.h | 1 + 1 file changed, 1 insertion(+) diff --git a/portable/MPLAB/PIC24_dsPIC/portmacro.h b/portable/MPLAB/PIC24_dsPIC/portmacro.h index da1cbca1543..83b695a43bb 100644 --- a/portable/MPLAB/PIC24_dsPIC/portmacro.h +++ b/portable/MPLAB/PIC24_dsPIC/portmacro.h @@ -52,6 +52,7 @@ extern "C" { #define portSTACK_TYPE uint16_t #define portBASE_TYPE short #define portPOINTER_SIZE_TYPE size_t +#define SIZE_MAX ( ( size_t ) -1 ) typedef portSTACK_TYPE StackType_t; typedef short BaseType_t;