diff options
Diffstat (limited to 'src/windows/port.h')
-rwxr-xr-x | src/windows/port.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/windows/port.h b/src/windows/port.h index 24d7677..d78a185 100755 --- a/src/windows/port.h +++ b/src/windows/port.h @@ -111,12 +111,16 @@ enum { STDIN_FILENO = 0, STDOUT_FILENO = 1, STDERR_FILENO = 2 }; * because they don't always NUL-terminate. :-( We also can't use the * name vsnprintf, since windows defines that (but not snprintf (!)). */ -extern int snprintf(char *str, size_t size, +#ifndef HAVE_SNPRINTF +extern int GOOGLE_GLOG_DLL_DECL snprintf(char *str, size_t size, const char *format, ...); -extern int safe_vsnprintf(char *str, size_t size, +#endif +extern int GOOGLE_GLOG_DLL_DECL safe_vsnprintf(char *str, size_t size, const char *format, va_list ap); #define vsnprintf(str, size, format, ap) safe_vsnprintf(str, size, format, ap) +#ifndef va_copy #define va_copy(dst, src) (dst) = (src) +#endif /* Windows doesn't support specifying the number of buckets as a * hash_map constructor arg, so we leave this blank. |