From 9537cfd3f8264700619f58d15741829489e1099e Mon Sep 17 00:00:00 2001 From: nOOb3167 Date: Sun, 22 Jul 2018 21:56:06 +0200 Subject: Add a MSVC / Windows compatible snprintf function (#7353) Use sizeof where applicable for mt_snprintf --- src/porting.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/porting.h') diff --git a/src/porting.h b/src/porting.h index 1f9f066fb..4d30a5970 100644 --- a/src/porting.h +++ b/src/porting.h @@ -327,6 +327,8 @@ bool secure_rand_fill_buf(void *buf, size_t len); // This attaches to the parents process console, or creates a new one if it doesnt exist. void attachOrCreateConsole(); + +int mt_snprintf(char *buf, const size_t buf_size, const char *fmt, ...); } // namespace porting #ifdef __ANDROID__ -- cgit v1.2.3