diff --git a/FIXES b/FIXES index 509f4ac..baa7ae5 100644 --- a/FIXES +++ b/FIXES @@ -25,6 +25,10 @@ THIS SOFTWARE. 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. diff --git a/awk.h b/awk.h index 36a4286..5a55301 100644 --- a/awk.h +++ b/awk.h @@ -25,7 +25,7 @@ THIS SOFTWARE. #include #include #include -#if __STDC__ <= 199901L +#if __STDC_VERSION__ <= 199901L #define noreturn #else #include diff --git a/main.c b/main.c index 6b1ed56..3b903f8 100644 --- a/main.c +++ b/main.c @@ -22,7 +22,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ****************************************************************/ -const char *version = "version 20200416"; +const char *version = "version 20200515"; #define DEBUG #include