Define (U)BaseType_t to 64-bit types on Windows (#715)

Define (U)BaseType_t to 64-bit types on Windows

This ensures that BaseType_t and UBaseType_t are correctly defined to
64-bit types on 64-bit Windows.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
Gaurav-Aggarwal-AWS 2023-07-24 18:03:49 +05:30 committed by GitHub
parent ae3a498e43
commit a33ba8e646
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,12 +42,19 @@
#define portLONG long
#define portSHORT short
#define portSTACK_TYPE size_t
#define portBASE_TYPE long
#define portPOINTER_SIZE_TYPE size_t
typedef portSTACK_TYPE StackType_t;
#if defined( __x86_64__) || defined( _M_X64 )
#define portBASE_TYPE long long
typedef long long BaseType_t;
typedef unsigned long long UBaseType_t;
#else
#define portBASE_TYPE long
typedef long BaseType_t;
typedef unsigned long UBaseType_t;
#endif
#if( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_16_BITS )