mirror of https://github.com/YosysHQ/abc.git
Fix windows build
This commit is contained in:
parent
12eb48b476
commit
094c1ca741
|
|
@ -288,11 +288,9 @@ enum sn_obj_type_enum
|
||||||
SN_OBJ_TYPE_COUNT
|
SN_OBJ_TYPE_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __cplusplus
|
// Use a negative-size array as a compile-time check because ABC is also built
|
||||||
static_assert(SN_OBJ_TYPE_COUNT <= UINT8_MAX, "sn_obj_type_t cannot represent every object type");
|
// as C by MSVC, whose C frontend does not accept the C11 _Static_assert keyword.
|
||||||
#else
|
typedef char sn_obj_type_count_must_fit_in_uint8_t[(SN_OBJ_TYPE_COUNT <= UINT8_MAX) ? 1 : -1];
|
||||||
_Static_assert(SN_OBJ_TYPE_COUNT <= UINT8_MAX, "sn_obj_type_t cannot represent every object type");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef enum sn_mux_fanin_t
|
typedef enum sn_mux_fanin_t
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue