From acc311da84163bf8c35a2dd4972929f6e267cb58 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sun, 24 Sep 2000 11:12:04 +0000 Subject: [PATCH] Add definition of NO_RETURN --- nt/ChangeLog | 6 +++++- nt/config.nt | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/nt/ChangeLog b/nt/ChangeLog index 5c3e17d9d1d..f8b62243dc5 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,7 @@ +2000-09-24 Jason Rumney + + * config.nt (NO_RETURN): Define it. + 2000-09-17 Andrew Innes * gmake.defs: Revert to Unix line endings. @@ -642,5 +646,5 @@ * _emacs: New file. ;; Local Variables: -;; coding: iso-2022-7bit-unix +;; coding: iso-2022-7bit ;; End: diff --git a/nt/config.nt b/nt/config.nt index 32c56e4cd96..095fb34a992 100644 --- a/nt/config.nt +++ b/nt/config.nt @@ -440,3 +440,11 @@ extern char *getenv (); #include "string.h" #endif #endif + +#ifndef NO_RETURN +#if defined __GNUC__ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR >= 5)) +#define NO_RETURN __attribute__ ((__noreturn__)) +#else +#define NO_RETURN /* nothing */ +#endif +#endif -- 2.39.2