define attribute / int len

This commit is contained in:
2015-10-26 11:33:50 +01:00
parent a34c893d44
commit a5116edbc7
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -9,8 +9,8 @@
int vasprintf(char** pbuffer, const char* format, va_list ap)
{
va_list ap2;
size_t len;
int len;
#if defined(vxWorks)
FILE* f;
/* print to null device to get required buffer length */
+4
View File
@@ -4,6 +4,10 @@
extern "C" {
#endif
#include <stdarg.h>
#ifndef __GNUC__
#define __attribute__(arg)
#endif
int asprintf(char** pbuffer, const char* format, ...) __attribute__((format(printf,2,3)));
int vasprintf(char** pbuffer, const char* format, va_list ap) __attribute__((format(printf,2,0)));
#ifdef __cplusplus