RE: [PATCH v6] eal: define __SIZEOF_LONG__ when using MSVC

2025-02-09 Thread Konstantin Ananyev
> Macro __SIZEOF_LONG__ is not standardized and MSVC does not define it. > Therefore the errors below are seen with MSVC: > > ../lib/mldev/mldev_utils_scalar.c(465): error C2065: > '__SIZEOF_LONG__': undeclared identifier > ../lib/mldev/mldev_utils_scalar.c(478): error C2051: > case expr

Re: [PATCH v6] eal: define __SIZEOF_LONG__ when using MSVC

2025-02-07 Thread Bruce Richardson
On Fri, Feb 07, 2025 at 07:04:28AM -0800, Andre Muezerie wrote: > Macro __SIZEOF_LONG__ is not standardized and MSVC does not define it. > Therefore the errors below are seen with MSVC: > > ../lib/mldev/mldev_utils_scalar.c(465): error C2065: > '__SIZEOF_LONG__': undeclared identifier > ../lib

[PATCH v6] eal: define __SIZEOF_LONG__ when using MSVC

2025-02-07 Thread Andre Muezerie
Macro __SIZEOF_LONG__ is not standardized and MSVC does not define it. Therefore the errors below are seen with MSVC: ../lib/mldev/mldev_utils_scalar.c(465): error C2065: '__SIZEOF_LONG__': undeclared identifier ../lib/mldev/mldev_utils_scalar.c(478): error C2051: case expression not const