aboutsummaryrefslogtreecommitdiffstats
path: root/missing_d/snprintf.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 14:55:10 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 14:55:10 +0300
commit00ef0423acd97cb964a2bae54c93a03a8ab50e5e (patch)
tree2864426773f537f912db1bd716c27b713c5f7dcf /missing_d/snprintf.c
parent3ba50a15ebd976f7a88393e2e45dc14b6478b9a9 (diff)
downloadegawk-00ef0423acd97cb964a2bae54c93a03a8ab50e5e.tar.gz
egawk-00ef0423acd97cb964a2bae54c93a03a8ab50e5e.tar.bz2
egawk-00ef0423acd97cb964a2bae54c93a03a8ab50e5e.zip
Move to 3.1.8.
Diffstat (limited to 'missing_d/snprintf.c')
-rw-r--r--missing_d/snprintf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/missing_d/snprintf.c b/missing_d/snprintf.c
index df7f1da7..254a8e0b 100644
--- a/missing_d/snprintf.c
+++ b/missing_d/snprintf.c
@@ -109,6 +109,11 @@ safe_tmpfile (void)
#error Neither mkstemp() nor tmpfile() is available on this platform.
#endif
+#if (__STDC_VERSION__ + 0) < 199901
+#undef restrict /* force it! */
+#define restrict
+#endif
+
int
vsnprintf (char *restrict buf, size_t len,
const char *restrict fmt, va_list args)