ref: 1107437dceb036a21745779d911539cc273bb094
parent: 93e5dd87a1fc9782b877d41efa6222f55a0e4167
author: Arnold D. Robbins <arnold@skeeve.com>
date: Fri May 15 11:12:15 EDT 2020
Fix test for use of noreturn.
--- a/FIXES
+++ b/FIXES
@@ -25,6 +25,10 @@
This file lists all bug fixes, changes, etc., made since the AWK book
was sent to the printers in August, 1987.
+May 5, 2020:
+ Fix checks for compilers that can handle noreturn. Thanks to
+ GitHub user enh-google for pointing it out. Closes Issue #79.
+
April 16, 2020:
Handle old compilers that don't support C11 (for noreturn).
Thanks to Arnold Robbins.
--- a/awk.h
+++ b/awk.h
@@ -25,7 +25,7 @@
#include <assert.h>
#include <stdint.h>
#include <stdbool.h>
-#if __STDC__ <= 199901L
+#if __STDC_VERSION__ <= 199901L
#define noreturn
#else
#include <stdnoreturn.h>
--- a/main.c
+++ b/main.c
@@ -22,7 +22,7 @@
THIS SOFTWARE.
****************************************************************/
-const char *version = "version 20200416";
+const char *version = "version 20200515";
#define DEBUG
#include <stdio.h>
--
⑨