mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Use stdarg only if compiling with an ANSI C compiler.
This commit is contained in:
parent
c77a16309f
commit
fca8dcf829
@ -1,3 +1,8 @@
|
|||||||
|
2002-04-11 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
|
* log.c: Set WGET_USE_STDARG if __STDC__ is defined and stdarg.h
|
||||||
|
is present.
|
||||||
|
|
||||||
2002-04-11 Hrvoje Niksic <hniksic@arsdigita.com>
|
2002-04-11 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
* progress.c (bar_create): If INITIAL is larger than TOTAL, fix
|
* progress.c (bar_create): If INITIAL is larger than TOTAL, fix
|
||||||
|
13
src/log.c
13
src/log.c
@ -19,6 +19,16 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
/* Use stdarg only if the compiler supports ANSI C and stdarg.h is
|
||||||
|
present. We check for both because there are configurations where
|
||||||
|
stdarg.h exists, but doesn't work. */
|
||||||
|
#undef WGET_USE_STDARG
|
||||||
|
#ifdef __STDC__
|
||||||
|
# ifdef HAVE_STDARG_H
|
||||||
|
# define WGET_USE_STDARG
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef HAVE_STRING_H
|
#ifdef HAVE_STRING_H
|
||||||
# include <string.h>
|
# include <string.h>
|
||||||
@ -26,8 +36,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
# include <strings.h>
|
# include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#ifdef HAVE_STDARG_H
|
#ifdef WGET_USE_STDARG
|
||||||
# define WGET_USE_STDARG
|
|
||||||
# include <stdarg.h>
|
# include <stdarg.h>
|
||||||
#else
|
#else
|
||||||
# include <varargs.h>
|
# include <varargs.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user