diff options
author | Jason Rumney <jasonr@gnu.org> | 2000-09-24 11:12:04 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2000-09-24 11:12:04 +0000 |
commit | acc311da84163bf8c35a2dd4972929f6e267cb58 (patch) | |
tree | 8ca05771242b4991d620a14afdc05861d9b89cd9 /nt | |
parent | b4da8dfa96ed121354929e1206440cf6ee431e21 (diff) | |
download | emacs-acc311da84163bf8c35a2dd4972929f6e267cb58.tar.gz |
Add definition of NO_RETURN
Diffstat (limited to 'nt')
-rw-r--r-- | nt/ChangeLog | 6 | ||||
-rw-r--r-- | nt/config.nt | 8 |
2 files changed, 13 insertions, 1 deletions
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 <jasonr@gnu.org> + + * config.nt (NO_RETURN): Define it. + 2000-09-17 Andrew Innes <andrewi@gnu.org> * 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 |