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,