summaryrefslogtreecommitdiff
path: root/graphics/ogle_gui/patches/patch-ac
blob: dd9bfa60a510a824d55cfa0b0f709853f588ab8d (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
$NetBSD: patch-ac,v 1.1 2001/12/26 21:09:53 wiz Exp $

--- src/debug_print.h.orig	Mon Dec  3 21:13:47 2001
+++ src/debug_print.h
@@ -5,20 +5,25 @@
 
 #if defined(__GNUC__) && ( __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 95))
 
-#define FATAL(str, args...) \
-fprintf(stderr, "FATAL[%s]: " str, program_name, ## args)
+#define FATAL(str...) _FATAL( , ##str)
+#define _FATAL(str, args...) \
+fprintf(stderr, "FATAL[%s]: " str, program_name, ##args)
 
-#define ERROR(str, args...) \
-fprintf(stderr, "ERROR[%s]: " str, program_name, ## args)
+#define ERROR(str...) _ERROR( , ##str)
+#define _ERROR(str, args...) \
+fprintf(stderr, "ERROR[%s]: " str, program_name, ##args)
 
-#define WARNING(str, ...) \
-fprintf(stderr, "WARNING[%s]: " str, program_name, ## args)
+#define WARNING(str...) _WARNING( , ##str)
+#define _WARNING(str, args...) \
+fprintf(stderr, "WARNING[%s]: " str, program_name, ##args)
 
-#define NOTE(str, args...) \
-fprintf(stderr, "Note[%s]: " str, program_name, ## args)
+#define NOTE(str...) _NOTE(, ##str)
+#define _NOTE(str, args...) \
+fprintf(stderr, "Note[%s]: " str, program_name, ##args)
 
-#define DNOTE(str, args...) \
-fprintf(stderr, "Debug[%s]: " str, program_name, ## args)
+#define DNOTE(str...) _DNOTE( , ##str)
+#define _DNOTE(str, args...) \
+fprintf(stderr, "Debug[%s]: " str, program_name, ##args)
 
 
 #else /* __GNUC__ < 2 */