diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 14:55:10 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 14:55:10 +0300 |
commit | 00ef0423acd97cb964a2bae54c93a03a8ab50e5e (patch) | |
tree | 2864426773f537f912db1bd716c27b713c5f7dcf /missing_d/snprintf.c | |
parent | 3ba50a15ebd976f7a88393e2e45dc14b6478b9a9 (diff) | |
download | egawk-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.c | 5 |
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) |