We need VA_COPY() defined more. Fix dangling #endif.
authorWayne Davison <wayned@samba.org>
Mon, 30 May 2011 19:48:04 +0000 (12:48 -0700)
committerWayne Davison <wayned@samba.org>
Mon, 30 May 2011 19:48:04 +0000 (12:48 -0700)
lib/snprintf.c

index f7ab908c54b3a7bc44414e200f1e99761c644a58..dd72f3e8b44439b3dd831fd74a93cbcefea5464f 100644 (file)
  void dummy_snprintf(void) {} 
 #endif /* HAVE_SNPRINTF, etc */
 
-/* yes this really must be a ||. Don't muck with this (tridge) */
-#if !defined(HAVE_VSNPRINTF) || !defined(HAVE_C99_VSNPRINTF)
-
 #ifdef HAVE_LONG_DOUBLE
 #define LDOUBLE long double
 #else
 #define VA_COPY(dest, src) (dest) = (src)
 #endif
 #endif
+#endif
+
+/* yes this really must be a ||. Don't muck with this (tridge) */
+#if !defined(HAVE_VSNPRINTF) || !defined(HAVE_C99_VSNPRINTF)
 
 /*
  * dopr(): poor man's version of doprintf
@@ -1232,8 +1233,6 @@ int rsync_snprintf(char *str,size_t count,const char *fmt,...)
 #define snprintf rsync_snprintf
 #endif
 
-#endif 
-
 #ifndef HAVE_VASPRINTF
  int vasprintf(char **ptr, const char *format, va_list ap)
 {