]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
More VMS support.
authorBruno Haible <bruno@clisp.org>
Mon, 5 May 2003 11:03:13 +0000 (11:03 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:27 +0000 (12:10 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/po-lex.c
gettext-tools/src/po-lex.h

index 01e6f2cc37f4fb4e303ef124a982024dc926c3f9..e8fea36ca403ffc4da488a94bcc1b4beb6cd50aa 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-04  Bruno Haible  <bruno@clisp.org>
+
+       * po-lex.h (po_gram_error): Don't use ISO C 99 feature on DEC C.
+       * po-lex.c (po_gram_error): LIkewise.
+
 2003-05-03  Bruno Haible  <bruno@clisp.org>
 
        * msgfilter.c: Include <sys/select.h> also on EMX.
index d5be021b3cf9972098b60958e4193ae56f8c54df..10ed6febda94269fe5987df82afe784ba7c4f724 100644 (file)
@@ -69,7 +69,7 @@ int gram_pos_column;
    These functions can access gram_pos and gram_pos_column.  */
 
 #if !(__STDC__ && \
-      ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) \
+      ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L && !defined __DECC) \
        || (defined __GNUC__ && __GNUC__ >= 2 && !defined __APPLE_CC__)))
 
 /* CAUTION: If you change this function, you must also make identical
index a7934001b67affabd79e897877182469d1c0339f..f50011cdc41a4709ceeb3fc422edfe2b72262f41 100644 (file)
@@ -64,8 +64,9 @@ extern void po_lex_pass_comments (bool flag);
 extern void po_lex_pass_obsolete_entries (bool flag);
 
 
-/* ISO C 99 is smart enough to allow optimizations like this.  */
-#if __STDC__ && (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)
+/* 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)
 
 /* CAUTION: If you change this macro, you must also make identical
    changes to the function of the same name in src/po-lex.c  */