Only do the extra va_* stuff if we're compiling with the compiler that
cares about it (PGI). This commit was SVN r7860.
Этот коммит содержится в:
родитель
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 */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user