mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-20 02:42:09 +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:
@@ -136,6 +136,7 @@
|
||||
#if !defined(HAVE_SNPRINTF)
|
||||
#define LIBSSH2_SNPRINTF
|
||||
#define snprintf _libssh2_snprintf
|
||||
int _libssh2_snprintf(char *cp, size_t cp_max_len, const char *fmt, ...);
|
||||
#endif
|
||||
|
||||
/* "inline" keyword is valid only with C++ engine! */
|
||||
|
||||
Reference in New Issue
Block a user