25 lines
816 B
Plaintext
25 lines
816 B
Plaintext
$OpenBSD: patch-lib_qprintf_c,v 1.2 2003/12/28 18:42:46 espie Exp $
|
|
--- lib/qprintf.c.orig 2000-02-06 17:45:07.000000000 +0100
|
|
+++ lib/qprintf.c 2003-12-28 19:30:33.000000000 +0100
|
|
@@ -16,7 +16,7 @@
|
|
|
|
#include <stdio.h>
|
|
|
|
-#ifdef HAVE_VARARGS_H
|
|
+#if defined(HAVE_VARARGS_H) && !defined(STDC_HEADERS)
|
|
#include <varargs.h>
|
|
#else
|
|
#include <stdarg.h>
|
|
@@ -33,8 +33,9 @@ int GifQuietPrint = TRUE;
|
|
/*****************************************************************************
|
|
* Same as fprintf to stderr but with optional print. *
|
|
*****************************************************************************/
|
|
-#ifdef HAVE_VARARGS_H
|
|
-void GifQprintf(int va_alist)
|
|
+#if defined(HAVE_VARARGS_H) && !defined(STDC_HEADERS)
|
|
+void GifQprintf(va_alist)
|
|
+va_dcl
|
|
{
|
|
char *Format, Line[128];
|
|
va_list ArgPtr;
|