]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Correct location of rpl_* defines to outside "#if !HAVE_VSNPRINTF"
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 28 Nov 2010 14:23:05 +0000 (15:23 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 28 Nov 2010 14:23:05 +0000 (15:23 +0100)
snprintf.c

index 600eff2d69155fdef00a22184c0217130cb383ac..e1b86f2863dbaed86fc62a0d46689a7aba327c32 100644 (file)
 #define VA_SHIFT(ap, value, type) value = va_arg(ap, type)
 #endif /* HAVE_STDARG_H */
 
+#if !HAVE_VSNPRINTF
+int rpl_vsnprintf(char *, size_t, const char *, va_list);
+#define vsnprintf rpl_vsnprintf
+#endif
+#if !HAVE_SNPRINTF
+int rpl_snprintf(char *, size_t, const char *, ...);
+#define snprintf rpl_snprintf
+#endif
+#if !HAVE_VASPRINTF
+int rpl_vasprintf(char **, const char *, va_list);
+#define vasprintf rpl_vasprintf
+#endif
+#if !HAVE_ASPRINTF
+int rpl_asprintf(char **, const char *, ...);
+#define asprintf rpl_asprintf
+#endif
+
 #if !HAVE_VASPRINTF
 #if HAVE_STDLIB_H
 #include <stdlib.h>    /* For malloc(3). */
@@ -524,23 +541,6 @@ static LDOUBLE mypow10(int);
 
 extern int errno;
 
-#if !HAVE_VSNPRINTF
-  int rpl_vsnprintf(char *, size_t, const char *, va_list);
-  #define vsnprintf rpl_vsnprintf
-#endif
-#if !HAVE_SNPRINTF
-  int rpl_snprintf(char *, size_t, const char *, ...);
-  #define snprintf rpl_snprintf
-#endif
-#if !HAVE_VASPRINTF
-  int rpl_vasprintf(char **, const char *, va_list);
-  #define vasprintf rpl_vasprintf
-#endif
-#if !HAVE_ASPRINTF
-  int rpl_asprintf(char **, const char *, ...);
-  #define asprintf rpl_asprintf
-#endif
-
 int
 rpl_vsnprintf(char *str, size_t size, const char *format, va_list args)
 {