1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-21 14:00:51 +03:00

snprintf: add missing prototype for local replacement (#820)

Should fix these warnings with MSVS 2013 and older:
`agent.c(294): warning C4013: '_libssh2_snprintf' undefined; assuming extern returning int`

Follow-up to 4cdf785cd3.
This commit is contained in:
Viktor Szakats
2023-03-08 16:19:22 +01:00
committed by GitHub
parent 7cce783081
commit 57f1d38140

View File

@@ -136,6 +136,7 @@
#if !defined(HAVE_SNPRINTF) #if !defined(HAVE_SNPRINTF)
#define LIBSSH2_SNPRINTF #define LIBSSH2_SNPRINTF
#define snprintf _libssh2_snprintf #define snprintf _libssh2_snprintf
int _libssh2_snprintf(char *cp, size_t cp_max_len, const char *fmt, ...);
#endif #endif
/* "inline" keyword is valid only with C++ engine! */ /* "inline" keyword is valid only with C++ engine! */