summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/include/k5-platform.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/include/k5-platform.h b/src/include/k5-platform.h
index 23ddf69671..1734e42c1a 100644
--- a/src/include/k5-platform.h
+++ b/src/include/k5-platform.h
@@ -912,14 +912,18 @@ snprintf(char *str, size_t size, const char *format, ...)
#endif /* win32? */
#endif /* no vsnprintf */
-#if !defined(__cplusplus) && (__GNUC__ > 2)
+#ifndef HAVE_VASPRINTF
+
extern int krb5int_vasprintf(char **, const char *, va_list)
- __attribute__((__format__(__printf__, 2, 0)));
+#if !defined(__cplusplus) && (__GNUC__ > 2)
+ __attribute__((__format__(__printf__, 2, 0)))
+#endif
+ ;
extern int krb5int_asprintf(char **, const char *, ...)
- __attribute__((__format__(__printf__, 2, 3)));
+#if !defined(__cplusplus) && (__GNUC__ > 2)
+ __attribute__((__format__(__printf__, 2, 3)))
#endif
-
-#ifndef HAVE_VASPRINTF
+ ;
#define vasprintf krb5int_vasprintf
/* Assume HAVE_ASPRINTF iff HAVE_VASPRINTF. */