1
1

Only do the extra va_* stuff if we're compiling with the compiler that

cares about it (PGI).

This commit was SVN r7860.
Этот коммит содержится в:
Jeff Squyres 2005-10-25 13:08:52 +00:00
родитель c41c77848e
Коммит a9f04c7573

Просмотреть файл

@ -51,11 +51,13 @@ static inline void DUMP( char* fmt, ... )
# define DUMP(ARGS...) # define DUMP(ARGS...)
# else # else
static inline void DUMP( char* fmt, ...) { static inline void DUMP( char* fmt, ...) {
#if defined(__PGI)
/* Some compilers complain if we have ... and no /* Some compilers complain if we have ... and no
corresponding va_start() */ corresponding va_start() */
va_list arglist; va_list arglist;
va_start(arglist, fmt); va_start(arglist, fmt);
va_end(arglist); va_end(arglist);
#endif
} }
# endif /* __GNUC__ && !__STDC__ */ # endif /* __GNUC__ && !__STDC__ */
# endif /* ACCEPT_C99 */ # endif /* ACCEPT_C99 */