From a41ceb8189b0b189b80c9f65500611940166bb2b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 5 May 2003 11:03:13 +0000 Subject: [PATCH] More VMS support. --- gettext-tools/src/ChangeLog | 5 +++++ gettext-tools/src/po-lex.c | 2 +- gettext-tools/src/po-lex.h | 5 +++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 01e6f2cc3..e8fea36ca 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,8 @@ +2003-05-04 Bruno Haible + + * 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 * msgfilter.c: Include also on EMX. diff --git a/gettext-tools/src/po-lex.c b/gettext-tools/src/po-lex.c index d5be021b3..10ed6febd 100644 --- a/gettext-tools/src/po-lex.c +++ b/gettext-tools/src/po-lex.c @@ -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 diff --git a/gettext-tools/src/po-lex.h b/gettext-tools/src/po-lex.h index a7934001b..f50011cdc 100644 --- a/gettext-tools/src/po-lex.h +++ b/gettext-tools/src/po-lex.h @@ -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 */ -- 2.47.3