aboutsummaryrefslogtreecommitdiffstats
path: root/WWW/Library
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2021-03-23 00:37:21 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2021-03-23 00:37:21 +0000
commit7c7ff9bd2d0334289b1a705c94d7a14046fb9a8a (patch)
tree91d9a847037b402ad37b67c5b893ca2f8dc64b1b /WWW/Library
parent431f06f02cbacbd4496e13ebda51a580f0a48b91 (diff)
downloadlynx-snapshots-7c7ff9bd2d0334289b1a705c94d7a14046fb9a8a.tar.gz
snapshot of project "lynx", label v2-9-0dev_6g
Diffstat (limited to 'WWW/Library')
-rw-r--r--WWW/Library/Implementation/HTUtils.h8
-rw-r--r--WWW/Library/Implementation/LYexit.h6
2 files changed, 10 insertions, 4 deletions
diff --git a/WWW/Library/Implementation/HTUtils.h b/WWW/Library/Implementation/HTUtils.h
index e285e3d1..57aa64e7 100644
--- a/WWW/Library/Implementation/HTUtils.h
+++ b/WWW/Library/Implementation/HTUtils.h
@@ -1,5 +1,5 @@
/*
- * $LynxId: HTUtils.h,v 1.131 2020/01/21 22:08:40 tom Exp $
+ * $LynxId: HTUtils.h,v 1.132 2021/03/22 23:03:56 tom Exp $
*
* Utility macros for the W3 code library
* MACROS FOR GENERAL USE
@@ -17,6 +17,12 @@
#ifdef HAVE_CONFIG_H
#include <lynx_cfg.h> /* generated by autoconf 'configure' script */
+#ifdef HAVE_STDNORETURN_H
+#include <stdnoreturn.h>
+#undef GCC_NORETURN
+#define GCC_NORETURN _Noreturn
+#endif
+
/* see AC_FUNC_ALLOCA macro */
#ifdef __GNUC__
# define alloca(size) __builtin_alloca(size)
diff --git a/WWW/Library/Implementation/LYexit.h b/WWW/Library/Implementation/LYexit.h
index 60e6910d..dd4b0e64 100644
--- a/WWW/Library/Implementation/LYexit.h
+++ b/WWW/Library/Implementation/LYexit.h
@@ -55,10 +55,10 @@ extern "C" {
/*
* Function declarations
*/
- extern void outofmem(const char *fname, const char *func) GCC_NORETURN;
+ extern GCC_NORETURN void outofmem(const char *fname, const char *func);
extern void reset_signals(void);
- extern void exit_immediately(int status) GCC_NORETURN;
- extern void LYexit(int status) GCC_NORETURN;
+ extern GCC_NORETURN void exit_immediately(int status);
+ extern GCC_NORETURN void LYexit(int status);
extern int LYatexit(void (*function) (void));
#ifdef __cplusplus