summaryrefslogtreecommitdiff
path: root/graphics/xfractint/files/patch-fractint.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xfractint/files/patch-fractint.c')
-rw-r--r--graphics/xfractint/files/patch-fractint.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/graphics/xfractint/files/patch-fractint.c b/graphics/xfractint/files/patch-fractint.c
new file mode 100644
index 000000000000..e9fea5a958d1
--- /dev/null
+++ b/graphics/xfractint/files/patch-fractint.c
@@ -0,0 +1,40 @@
+--- fractint.c.orig Tue Sep 7 00:38:10 1999
++++ fractint.c Sun Dec 7 12:15:08 2003
+@@ -10,7 +10,7 @@
+ #include <io.h>
+ #include <stdarg.h>
+ #else
+-#include <varargs.h>
++#include <stdarg.h>
+ #endif
+ #include <ctype.h>
+
+@@ -540,12 +540,7 @@
+ timer(1,NULL,int width) decoder
+ timer(2) encoder
+ */
+-#ifndef XFRACT
+ int timer(int timertype,int(*subrtn)(),...)
+-#else
+-int timer(va_alist)
+-va_dcl
+-#endif
+ {
+ va_list arg_marker; /* variable arg list */
+ char *timestring;
+@@ -555,15 +550,7 @@
+ int i;
+ int do_bench;
+
+-#ifndef XFRACT
+ va_start(arg_marker,subrtn);
+-#else
+- int timertype;
+- int (*subrtn)();
+- va_start(arg_marker);
+- timertype = va_arg(arg_marker, int);
+- subrtn = (int (*)())va_arg(arg_marker, int *);
+-#endif
+
+ do_bench = timerflag; /* record time? */
+ if (timertype == 2) /* encoder, record time only if debug=200 */