summaryrefslogtreecommitdiff
path: root/devel/gettext-tools/patches/patch-aq
blob: ecdda22e085ef27fb7cf4926afca552e75bd89be (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
$NetBSD: patch-aq,v 1.2 2007/03/12 23:59:47 rillig Exp $

Don't call varargs macros with zero arguments, since that is not
required by ISO C99 and only gcc can handle it.

Fixed in gettext-tools-0.16.

--- gettext-tools/src/po-lex.h.orig	2005-05-20 23:03:44.000000000 +0200
+++ gettext-tools/src/po-lex.h	2007-03-12 23:26:26.000000000 +0100
@@ -73,7 +73,7 @@ extern void po_lex_pass_obsolete_entries
 
 /* ISO C 99 is smart enough to allow optimizations like this.
    Note: OpenVMS 7.3 cc pretends to support ISO C 99 but chokes on '...'.  */
-#if __STDC__ && (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L && !defined __DECC)
+#if 0
 
 /* CAUTION: If you change this macro, you must also make identical
    changes to the function of the same name in src/po-lex.c  */
@@ -109,7 +109,7 @@ extern void po_lex_pass_obsolete_entries
   } while (0)
 
 /* GCC is also smart enough to allow optimizations like this.  */
-#elif __STDC__ && defined __GNUC__ && __GNUC__ >= 2 && !defined __APPLE_CC__
+#elif 0
 
 /* CAUTION: If you change this macro, you must also make identical
    changes to the function of the same name in src/po-lex.c  */