mirror of
https://github.com/pine64/blisp.git
synced 2024-12-22 06:20:12 +00:00
blisp_struct.h: define static_assert when undefined to _Static_assert
This commit is contained in:
parent
7a85414ece
commit
be86373d37
@ -9,6 +9,12 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdint.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)
|
#pragma pack(push, 1)
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user