more changes to make override of printf work
This commit is contained in:
@@ -90,8 +90,9 @@ int epicsShareAPI epicsShareAPI epicsStdoutPrintf(const char *pFormat, ...)
|
||||
{
|
||||
va_list pvar;
|
||||
int nchar;
|
||||
FILE *stream = epicsGetStdout();
|
||||
va_start(pvar, pFormat);
|
||||
nchar = vprintf(pFormat,pvar);
|
||||
nchar = vfprintf(stream,pFormat,pvar);
|
||||
va_end (pvar);
|
||||
return(nchar);
|
||||
}
|
||||
|
||||
@@ -52,9 +52,9 @@ epicsShareFunc int epicsShareAPI epicsStdoutPrintf(
|
||||
#endif
|
||||
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L
|
||||
#define printf(...) epicsStdoutPrintf(__VAR_ARGS__)
|
||||
#define printf(...) fprintf(stdout,__VAR_ARGS__)
|
||||
#elif defined(__GNUC__)
|
||||
#define printf(format...) epicsStdoutPrintf(format)
|
||||
#define printf(format...) fprintf(stdout,format)
|
||||
#else
|
||||
#define printf epicsStdoutPrintf
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user