diff options
author | nOOb3167 <nOOb3167@gmail.com> | 2018-07-22 21:56:06 +0200 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-07-22 21:56:06 +0200 |
commit | 9537cfd3f8264700619f58d15741829489e1099e (patch) | |
tree | 36412677aba19e1a2037db7fad2f934a2daa5046 /src/porting.h | |
parent | 9855651c06f84f29780cf6b25a392ac841b4630c (diff) | |
download | hax-minetest-server-9537cfd3f8264700619f58d15741829489e1099e.tar.gz hax-minetest-server-9537cfd3f8264700619f58d15741829489e1099e.zip |
Add a MSVC / Windows compatible snprintf function (#7353)
Use sizeof where applicable for mt_snprintf
Diffstat (limited to 'src/porting.h')
-rw-r--r-- | src/porting.h | 2 |
1 files changed, 2 insertions, 0 deletions
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__ |