mirror of
https://github.com/pine64/blisp.git
synced 2024-12-22 06:20:12 +00:00
Merge pull request #62 from barracuda156/static_assert
blisp_struct.h: use _Static_assert for pre-C23 compatibility
This commit is contained in:
commit
17f6234a4a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user