From 721c8b22d38bad1e66ecde31f1e3e44d56ca455f Mon Sep 17 00:00:00 2001 From: David Rebbe Date: Thu, 5 Dec 2024 14:44:25 -0500 Subject: [PATCH] removed static_assert for now --- include/icsneo/icsneotypes.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/icsneo/icsneotypes.h b/include/icsneo/icsneotypes.h index 244ea11..33e90d2 100644 --- a/include/icsneo/icsneotypes.h +++ b/include/icsneo/icsneotypes.h @@ -1,10 +1,5 @@ #pragma once -// _Static_assert support, this can be removed once C23 is the "standard" -#if __STDC_VERSION__ < 202311L && !defined(__cplusplus) -#include -#endif - #ifdef __cplusplus extern "C" { #endif @@ -158,13 +153,6 @@ typedef enum _icsneo_devicetype_t { */ typedef uint32_t icsneo_devicetype_t; -// Make sure icsneo_devicetype_t is never smaller than the actual enum -#if __STDC_VERSION__ < 202311L && !defined(__cplusplus) -_Static_assert(sizeof(_icsneo_devicetype_t) <= sizeof(icsneo_devicetype_t), "icsneo_devicetype_t is too small"); -#else // C++ or C23 -static_assert(sizeof(_icsneo_devicetype_t) <= sizeof(icsneo_devicetype_t)); -#endif - typedef enum _icsneo_msg_type_t { icsneo_msg_type_device, icsneo_msg_type_internal,