diff options
Diffstat (limited to 'snippet/_Noreturn.h')
-rw-r--r-- | snippet/_Noreturn.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/snippet/_Noreturn.h b/snippet/_Noreturn.h new file mode 100644 index 0000000..1a7b4da --- /dev/null +++ b/snippet/_Noreturn.h @@ -0,0 +1,10 @@ +#ifndef _Noreturn +# if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \ + || 0x5110 <= __SUNPRO_C) +# define _Noreturn __attribute__ ((__noreturn__)) +# elif 1200 <= _MSC_VER +# define _Noreturn __declspec (noreturn) +# else +# define _Noreturn +# endif +#endif |