summaryrefslogtreecommitdiff
path: root/math/xfractint/patches/patch-ap
blob: 45b431e4e0ce25771bb5c89adff8192496afb868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$NetBSD: patch-ap,v 1.1 2006/06/14 09:07:45 rillig Exp $

--- printer.c.orig	2006-06-15 07:57:40.000000000 +0200
+++ printer.c	2006-06-15 08:38:59.000000000 +0200
@@ -89,6 +89,9 @@
 
 #ifndef XFRACT
 #include <conio.h>
+#endif
+
+#if !defined(USE_VARARGS)
 #include <stdarg.h>
 #else
 #include <varargs.h>
@@ -136,7 +139,7 @@
 
 /********      PROTOTYPES     ********/
 
-#ifndef XFRACT
+#if !defined(USE_VARARGS)
 static void Printer_printf(char far *fmt,...);
 #else
 static void Printer_printf();
@@ -1335,7 +1338,7 @@ static void _fastcall print_title(int pt
 
 /* This function prints a string to the the printer with BIOS calls. */
 
-#ifndef XFRACT
+#if !defined(USE_VARARGS)
 static void Printer_printf(char far *fmt,...)
 #else
 static void Printer_printf(va_alist)
@@ -1347,7 +1350,7 @@ char s[500];
 int x=0;
 va_list arg;
 
-#ifndef XFRACT
+#if !defined(USE_VARARGS)
 va_start(arg,fmt);
 #else
 char far *fmt;