aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-09-23 09:58:06 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-09-23 09:58:06 +0300
commit26b1a15e75cc1d134e8b52b0df9a5d1365e66d8f (patch)
tree3c1a5d7052668fea974333d9419d4c5304ff6664
parentcfd4fdf483194e09c57da590ada1e3533a19e615 (diff)
downloadegawk-26b1a15e75cc1d134e8b52b0df9a5d1365e66d8f.tar.gz
egawk-26b1a15e75cc1d134e8b52b0df9a5d1365e66d8f.tar.bz2
egawk-26b1a15e75cc1d134e8b52b0df9a5d1365e66d8f.zip
Small fix for Sun compilers.
-rwxr-xr-xChangeLog5
-rw-r--r--awk.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 04b85284..b614358f 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-09-23 Steven Packard <spackard1@bloomberg.net>
+
+ * awk.h: Add `#if !defined(__SUNPRO_C)' around check for non-ANSI
+ compilers. Needed for some Solaris systems.
+
2018-09-21 Arnold D. Robbins <arnold@skeeve.com>
* re.c (make_regexp): Handle backslash at end of
diff --git a/awk.h b/awk.h
index 1051036f..4de6cfc8 100644
--- a/awk.h
+++ b/awk.h
@@ -65,9 +65,11 @@
#endif /* LOCALEDIR */
#endif
+#if !defined(__SUNPRO_C)
#if !defined(__STDC__) || __STDC__ < 1
#error "gawk no longer supports non-C89 environments (no __STDC__ or __STDC__ < 1)"
#endif
+#endif
#if defined(HAVE_STDARG_H)
#include <stdarg.h>