From 00ef0423acd97cb964a2bae54c93a03a8ab50e5e Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 16 Jul 2010 14:55:10 +0300 Subject: Move to 3.1.8. --- missing_d/snprintf.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'missing_d/snprintf.c') 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) -- cgit v1.2.3