Allow use of noreturn attribute with Clang
- other compilers could also be enabled in the future.
This commit is contained in:
parent
dad77b3983
commit
096d625445
@ -190,6 +190,12 @@ inline int (isnan)(double r) { return !(r <= 0 || r >= 0); }
|
|||||||
# define DEPRECATED
|
# define DEPRECATED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
|
# define SG_NO_RETURN [[noreturn]]
|
||||||
|
#else
|
||||||
|
# define SG_NO_RETURN
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// No user modifiable definitions beyond here.
|
// No user modifiable definitions beyond here.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user