From b44a56c6a8f8b636b2f4f67c0ecc868e6811a8af Mon Sep 17 00:00:00 2001 From: Pavel Penev Date: Tue, 27 Feb 2018 23:08:22 -0500 Subject: [PATCH] #174: Support pre C99 in `csv_efprintf_s`. --- common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common.c b/common.c index db871f12..1a91c468 100644 --- a/common.c +++ b/common.c @@ -1381,7 +1381,10 @@ void csv_efprintf_s(FILE *stream, const char *file_path, // Write the string to the output file: efprintf(stream, file_path, "\""); - for (int i = 0; i < formatted_len; ++ i) { + + int i; + + for (i = 0; i < formatted_len; ++ i) { // Escape double quotes: if (formatted_str[i] == '"') { efprintf(stream, file_path, "\"");