summaryrefslogtreecommitdiffstats
path: root/gettext-tools
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-05-05 11:03:13 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:10:27 +0200
commita41ceb8189b0b189b80c9f65500611940166bb2b (patch)
tree36f49e633df6acee04eb406ab312b2f8b825a47c /gettext-tools
parent11b701885b3541e3aba5f0ef03059c963da34185 (diff)
downloadexternal_gettext-a41ceb8189b0b189b80c9f65500611940166bb2b.zip
external_gettext-a41ceb8189b0b189b80c9f65500611940166bb2b.tar.gz
external_gettext-a41ceb8189b0b189b80c9f65500611940166bb2b.tar.bz2
More VMS support.
Diffstat (limited to 'gettext-tools')
-rw-r--r--gettext-tools/src/ChangeLog5
-rw-r--r--gettext-tools/src/po-lex.c2
-rw-r--r--gettext-tools/src/po-lex.h5
3 files changed, 9 insertions, 3 deletions
diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog
index 01e6f2c..e8fea36 100644
--- a/gettext-tools/src/ChangeLog
+++ b/gettext-tools/src/ChangeLog
@@ -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.
diff --git a/gettext-tools/src/po-lex.c b/gettext-tools/src/po-lex.c
index d5be021..10ed6fe 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 a793400..f50011c 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 */