forked from epics_driver_modules/require
define attribute / int len
This commit is contained in:
+2
-2
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user