summaryrefslogtreecommitdiff
path: root/lib/vasnprintf.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vasnprintf.h')
-rw-r--r--lib/vasnprintf.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/vasnprintf.h b/lib/vasnprintf.h
index 08a135b12..65f1bc13d 100644
--- a/lib/vasnprintf.h
+++ b/lib/vasnprintf.h
@@ -17,30 +17,30 @@
USA. */
#ifndef _VASNPRINTF_H
-# define _VASNPRINTF_H
+#define _VASNPRINTF_H
/* Get va_list. */
-# include <stdarg.h>
+#include <stdarg.h>
/* Get size_t. */
-# include <stddef.h>
+#include <stddef.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().
You can pass a preallocated buffer for the result in RESULTBUF and its
@@ -54,8 +54,8 @@ extern char * asnprintf (char *resultbuf, size_t *lengthp, const char *format, .
extern char * vasnprintf (char *resultbuf, size_t *lengthp, const char *format, va_list args)
__attribute__ ((__format__ (__printf__, 3, 0)));
-# ifdef __cplusplus
+#ifdef __cplusplus
}
-# endif
+#endif
#endif /* _VASNPRINTF_H */