From: Jason Rumney Date: Sun, 24 Sep 2000 11:12:04 +0000 (+0000) Subject: Add definition of NO_RETURN X-Git-Tag: emacs-pretest-21.0.90~1409 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=acc311da84163bf8c35a2dd4972929f6e267cb58;p=emacs.git Add definition of NO_RETURN --- 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