blisp_struct.h: define static_assert when undefined to _Static_assert

This commit is contained in:
Sergey Fedorov 2024-01-06 16:03:05 +08:00
parent 7a85414ece
commit be86373d37

View File

@ -9,6 +9,12 @@
#include <assert.h>
#include <stdint.h>
#if !defined(static_assert) && (defined(__GNUC__) || defined(__clang__)) \
&& defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \
&& __STDC_VERSION__ <= 201710L
#define static_assert _Static_assert
#endif
#pragma pack(push, 1)
typedef struct {