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
|
$NetBSD: patch-as,v 1.2 2012/06/13 08:15:15 mef Exp $
Convert varargs-macros to old-style macros, to make the package
compile when using gcc 2.95.
--- libfstt/ttf.h.orig 2010-10-04 23:22:48.000000000 +0900
+++ libfstt/ttf.h 2011-10-17 12:57:55.000000000 +0900
@@ -47,10 +47,21 @@
using std::string;
#ifndef DEBUG
-# define debug(format, ...) while (0) { }
+# define debug(format) while (0) { }
+# define debug1(format, X1) while (0) { }
+# define debug2(format, X1, X2) while (0) { }
+# define debug3(format, X1, X2, X3) while (0) { }
+# define debug4(format, X1, X2, X3, X4) while (0) { }
+# define debug5(format, X1, X2, X3, X4, X5) while (0) { }
# define STATIC static
#else
-# define debug(format, ...) fprintf(stderr, format, ##__VA_ARGS__)
+# define debug(format) fprintf(stderr, format)
+# define debug1(format, X1) fprintf(stderr, format, X1)
+# define debug2(format, X1, X2) fprintf(stderr, format, X1, X2)
+# define debug3(format, X1, X2, X3) fprintf(stderr, format, X1, X2, X3)
+# define debug4(format, X1, X2, X3, X4) fprintf(stderr, format, X1, X2, X3, X4)
+# define debug5(format, X1, X2, X3, X4, X5) fprintf(stderr, format, X1, X2, X3, X4, X5)
+# defube debug4(
# define STATIC
#endif
|