summaryrefslogtreecommitdiff
path: root/src/port/snprintf.h
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-10 17:15:28 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-03-10 17:15:28 +0100
commit0de4a082d0f8a156b5aa40719c13e9fe44d2787d (patch)
tree5275d618ec64958b05e88c989c13ad9a4a559ccf /src/port/snprintf.h
parenta6b606fd903e4c7dd188fe6a8dd35ed583e54cbf (diff)
downloadwolfbones-0de4a082d0f8a156b5aa40719c13e9fe44d2787d.tar.gz
wolfbones-0de4a082d0f8a156b5aa40719c13e9fe44d2787d.tar.bz2
cleanup in stdio.h with snprintf (on Linux works at least), also added testing for snprintf
Diffstat (limited to 'src/port/snprintf.h')
-rw-r--r--src/port/snprintf.h40
1 files changed, 3 insertions, 37 deletions
diff --git a/src/port/snprintf.h b/src/port/snprintf.h
index 4e06c8b..0ffffe2 100644
--- a/src/port/snprintf.h
+++ b/src/port/snprintf.h
@@ -13,6 +13,9 @@
#ifndef HAVE_STDARG_H
#define HAVE_STDARG_H 1
#endif
+#ifndef HAVE_SYS_TYPES_H
+#define HAVE_SYS_TYPES_H 1
+#endif
#ifndef HAVE_STDDEF_H
#define HAVE_STDDEF_H 1
#endif
@@ -34,41 +37,4 @@
#include <sys/types.h> /* for size_t */
#endif
-#if !defined HAVE_VSNPRINTF
-#define vsnprintf rpl_vsnprintf
-#if HAVE_STDARG_H
-extern int rpl_vsnprintf(char *str, size_t size, const char *format, va_list args);
-#else
- #error va_list required for vsnprintf!
-#endif /* HAVE_STDARG_H */
-#endif /* !defined HAVE_VSNPRINTF */
-
-#if !defined HAVE_SNPRINTF
-#define snprintf rpl_snprintf
-#if HAVE_STDARG_H
-extern int
-rpl_snprintf(char *str, size_t size, const char *format, ...);
-#else
-extern int
-rpl_snprintf(va_alist) va_dcl;
-#endif /* HAVE_STDARG_H */
-#endif /* ! defined HAVE_SNPRINTF */
-
-#if !defined HAVE_VASPRINTF
-#define vasprintf rpl_vasprintf
-extern int
-rpl_vasprintf(char **ret, const char *format, va_list ap);
-#endif /* ! defined HAVE_VASPRINTF */
-
-#if !defined HAVE_ASPRINTF
-#define asprintf rpl_asprintf
-#if HAVE_STDARG_H
-extern int
-rpl_asprintf(char **ret, const char *format, ...);
-#else
-extern int
-rpl_asprintf(va_alist) va_dcl;
-#endif /* HAVE_STDARG_H */
-#endif /* ! defined HAVE_ASPRINTF */
-
#endif /* ifndef __SNPRINTF_H */