aboutsummaryrefslogtreecommitdiffstats
path: root/missing_d/snprintf.c
diff options
context:
space:
mode:
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)