summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-08-22 10:57:51 +0000
committerJim Meyering <jim@meyering.net>1999-08-22 10:57:51 +0000
commit95b8288176798870e89287ec2f36722861400260 (patch)
tree9dc9b6b503d077c78dc06b8e9686fab7cde9b266 /src
parent5a2d52808138eb6a7cd3b3c5a478fe705d85e7ff (diff)
downloadcoreutils-95b8288176798870e89287ec2f36722861400260.tar.xz
(ATTRIBUTE_NORETURN): Define.
Diffstat (limited to 'src')
-rw-r--r--src/sys2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sys2.h b/src/sys2.h
index ecb348105..8e80aa356 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -357,3 +357,9 @@ char *base_name PARAMS ((char const *));
#else
# define IF_LINT(Code) /* empty */
#endif
+
+#if __GNUC__
+# define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
+#else
+# define ATTRIBUTE_NORETURN /* empty */
+#endif