Squashed 'pkg/urcrypt/argon2/' changes from 4da94a611e..a4c1e3f713
Merge pull request from locpyl-tidnyd/master
Rename function to avoid name clash on MingW
git-subtree-dir: pkg/urcrypt/argon2
git-subtree-split:
@@ -370,7 +370,7 @@ int decode_string(argon2_context *ctx, const char *str, argon2_type type) {
#undef BIN
}
-void itoa(int i, char b[]){
+static void encode_decimal(int i, char b[]){
#ifdef ARGON2_JS
// because this generates WASM error:
@@ -416,7 +416,7 @@ int encode_string(char *dst, size_t dst_len, argon2_context *ctx,
#define SX(x) \
do { \
char tmp[30]; \
- itoa(x, tmp); \
+ encode_decimal(x, tmp); \
SS(tmp); \
} while ((void)0, 0)
