summaryrefslogtreecommitdiffstats
path: root/include/libssh/priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r--include/libssh/priv.h9
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