Allow use of noreturn attribute with Clang

- other compilers could also be enabled in the future.
This commit is contained in:
James Turner 2016-01-12 12:48:34 -06:00
parent dad77b3983
commit 096d625445

View File

@ -190,6 +190,12 @@ inline int (isnan)(double r) { return !(r <= 0 || r >= 0); }
# define DEPRECATED
#endif
#if defined(__clang__)
# define SG_NO_RETURN [[noreturn]]
#else
# define SG_NO_RETURN
#endif
//
// No user modifiable definitions beyond here.
//