vsnprintf not present on windows
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 9 May 2006 22:26:04 +0000 (22:26 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 9 May 2006 22:26:04 +0000 (22:26 +0000)
vsnprintf is not present on Windows.  Microsoft provides
the _vsnprintf form instead.   Add a macro to allow this
file to compile.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17993 dc483132-0cff-0310-8789-dd5450dbe970

src/util/support/errors.c

index 17f412726d5a2521641c60fd34b9528bb9ea7edd..67ddf625c67057ee357659b07ca9af35bf13edab 100644 (file)
 #include "k5-thread.h"
 #include "k5-platform.h"
 
+#ifdef _WIN32
+#ifndef vsnprintf
+#define vsnprintf _vsnprintf
+#endif
+#endif
+
 /* It would be nice to just use error_message() always.  Pity that
    it's defined in a library that depends on this one, and we're not
    allowed to make circular dependencies.  */