summaryrefslogtreecommitdiff
path: root/graphics/xfractint/files/patch-miscovl.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xfractint/files/patch-miscovl.c')
-rw-r--r--graphics/xfractint/files/patch-miscovl.c56
1 files changed, 56 insertions, 0 deletions
diff --git a/graphics/xfractint/files/patch-miscovl.c b/graphics/xfractint/files/patch-miscovl.c
new file mode 100644
index 000000000000..5d70b04f7b7e
--- /dev/null
+++ b/graphics/xfractint/files/patch-miscovl.c
@@ -0,0 +1,56 @@
+--- miscovl.c.orig Tue Sep 7 00:38:10 1999
++++ miscovl.c Sun Dec 7 10:54:31 2003
+@@ -5,13 +5,13 @@
+ #include <string.h>
+ #include <ctype.h>
+ #include <time.h>
++#include <stdarg.h>
+ #ifndef XFRACT
++#ifndef BIG_ANSI_C
+ #include <malloc.h>
++#endif
+ #include <process.h>
+-#include <stdarg.h>
+ #include <io.h>
+-#else
+-#include <varargs.h>
+ #endif
+ /* see Fractint.c for a description of the "include" hierarchy */
+ #include "port.h"
+@@ -24,11 +24,7 @@
+ static void write_batch_parms(char *colorinf,int colorsonly, int maxcolor,int i, int j);
+ static void expand_comments(char far *target, char far *source);
+
+-#ifndef XFRACT
+ static void put_parm(char *parm,...);
+-#else
+-static void put_parm();
+-#endif
+
+ static void put_parm_line(void);
+ static int getprec(double,double,double);
+@@ -1175,24 +1171,12 @@
+ }
+ }
+
+-#ifndef XFRACT
+ static void put_parm(char *parm,...)
+-#else
+-static void put_parm(va_alist)
+-va_dcl
+-#endif
+ {
+ char *bufptr;
+ va_list args;
+
+-#ifndef XFRACT
+ va_start(args,parm);
+-#else
+- char * parm;
+-
+- va_start(args);
+- parm = va_arg(args,char *);
+-#endif
+ if (*parm == ' ' /* starting a new parm */
+ && wbdata->len == 0) /* skip leading space */
+ ++parm;