diff options
| author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-04-06 22:58:43 +0200 |
|---|---|---|
| committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-04-06 22:58:43 +0200 |
| commit | 6e65abbe636f52ba76c2ed6763bb40f9f9bedf15 (patch) | |
| tree | 8063394841c4f031af60ed49f54f58cfe62f8b31 /include | |
| parent | bda836d74461b3c06eaeeb906fa6197e5bde42e7 (diff) | |
| download | libssh-6e65abbe636f52ba76c2ed6763bb40f9f9bedf15.tar.gz libssh-6e65abbe636f52ba76c2ed6763bb40f9f9bedf15.tar.xz libssh-6e65abbe636f52ba76c2ed6763bb40f9f9bedf15.zip | |
Fix vsnprintf symbol on older VS2003 compiler
Diffstat (limited to 'include')
| -rw-r--r-- | include/libssh/priv.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index ed607da7..81bb7510 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -34,6 +34,15 @@ #ifdef _MSC_VER #define snprintf _snprintf + +#ifndef HAVE_VSNPRINTF +#ifdef HAVE__VSNPRINTF +#define vsnprintf _vsnprintf +#else +#error "neither vsnprintf or vnsprintf available, this may fail" +#endif /* HAVE__VSNPRINTF */ +#endif /* HAVE_VSNPRINTF */ + /** Imitate define of inttypes.h */ #define PRIdS "Id" #define strcasecmp _stricmp |
