diff options
Diffstat (limited to 'lib/vasprintf.h')
-rw-r--r-- | lib/vasprintf.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/vasprintf.h b/lib/vasprintf.h index 0ab75ccf4..fdd831f20 100644 --- a/lib/vasprintf.h +++ b/lib/vasprintf.h @@ -21,29 +21,29 @@ #if HAVE_VASPRINTF /* Get asprintf(), vasprintf() declarations. */ -# include <stdio.h> +#include <stdio.h> #else /* Get va_list. */ -# include <stdarg.h> +#include <stdarg.h> -# ifndef __attribute__ +#ifndef __attribute__ /* This feature is available in gcc versions 2.5 and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ -# define __attribute__(Spec) /* empty */ -# endif +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ +# define __attribute__(Spec) /* empty */ +# endif /* The __-protected variants of `format' and `printf' attributes are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) -# define __format__ format -# define __printf__ printf -# endif +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) +# define __format__ format +# define __printf__ printf # endif +#endif -# ifdef __cplusplus +#ifdef __cplusplus extern "C" { -# endif +#endif /* Write formatted output to a string dynamically allocated with malloc(). If the memory allocation succeeds, store the address of the string in @@ -54,9 +54,9 @@ extern int asprintf (char **result, const char *format, ...) extern int vasprintf (char **result, const char *format, va_list args) __attribute__ ((__format__ (__printf__, 2, 0))); -# ifdef __cplusplus +#ifdef __cplusplus } -# endif +#endif #endif |