From: Martin Pool Date: Thu, 6 Sep 2001 06:27:02 +0000 (+0000) Subject: Fix selective definition of *snprintf. (Welcome to mbp's breakage world.) X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/1d54358e5207f5f5326dc9e9f362671275c86b22 Fix selective definition of *snprintf. (Welcome to mbp's breakage world.) --- diff --git a/rsync.h b/rsync.h index b53fa3de..5091a9e5 100644 --- a/rsync.h +++ b/rsync.h @@ -401,11 +401,11 @@ int asprintf(char **ptr, const char *format, ...); int vasprintf(char **ptr, const char *format, va_list ap); #endif -#if !defined(HAVE_VSNPRINTF) || !defined(HAVE_C99_VSNPRINTF) +#if !defined(HAVE_VSNPRINTF) && !defined(HAVE_C99_VSNPRINTF) int vsnprintf (char *str, size_t count, const char *fmt, va_list args); #endif -#if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_VSNPRINTF) +#if !defined(HAVE_SNPRINTF) && !defined(HAVE_C99_VSNPRINTF) int snprintf(char *str,size_t count,const char *fmt,...); #endif