mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
common.h: define static_assert to _Static_assert when undefined
This commit is contained in:
committed by
Christoffer Lerno
parent
87fa253059
commit
7136b05019
@@ -75,6 +75,10 @@
|
||||
#define __unused
|
||||
#endif
|
||||
|
||||
#ifndef static_assert
|
||||
#define static_assert _Static_assert
|
||||
#endif
|
||||
|
||||
|
||||
#if (defined(__GNUC__) && __GNUC__ >= 7) || defined(__clang__)
|
||||
#define PACK( __Declaration__ ) __Declaration__ __attribute__((__packed__))
|
||||
|
||||
Reference in New Issue
Block a user