diff options
author | Jim Meyering <jim@meyering.net> | 1992-11-19 20:51:13 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1992-11-19 20:51:13 +0000 |
commit | a07ae8bd0769097e10fa627c1f0a5da9db1995de (patch) | |
tree | 3e787722817821f1a156f201b81c30b6c2a2aa34 | |
parent | abaeb5ade82e7c65494c394ddcc14d99bc1fe075 (diff) | |
download | gnulib-a07ae8bd0769097e10fa627c1f0a5da9db1995de.tar.gz |
GNU text utilitiesgetopt-macros
-rw-r--r-- | lib/regex.c | 4 | ||||
-rw-r--r-- | lib/regex.h | 5 | ||||
-rw-r--r-- | lib/strtol.c | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/lib/regex.c b/lib/regex.c index 3129ed499f..71aa4cc87e 100644 --- a/lib/regex.c +++ b/lib/regex.c @@ -135,7 +135,11 @@ init_syntax_once () (Per Bothner suggested the basic approach.) */ #undef SIGN_EXTEND_CHAR #if __STDC__ +#ifndef VMS #define SIGN_EXTEND_CHAR(c) ((signed char) (c)) +#else /* On VMS, VAXC doesn't recognize `signed' before `char' */ +#define SIGN_EXTEND_CHAR(c) ((char) (c)) +#endif /* VMS */ #else /* As in Harbison and Steele. */ #define SIGN_EXTEND_CHAR(c) ((((unsigned char) (c)) ^ 128) - 128) diff --git a/lib/regex.h b/lib/regex.h index 87824ef474..ef8e9a3669 100644 --- a/lib/regex.h +++ b/lib/regex.h @@ -20,6 +20,11 @@ #ifndef __REGEXP_LIBRARY_H__ #define __REGEXP_LIBRARY_H__ +#ifdef VMS +/* POSIX says that size_t should be in stddef.h. */ +#include <stddef.h> +#endif + /* POSIX says that <sys/types.h> must be included before <regex.h>. */ /* The following bits are used to determine the regexp syntax we diff --git a/lib/strtol.c b/lib/strtol.c index 09d8f86e93..d91db4bfe6 100644 --- a/lib/strtol.c +++ b/lib/strtol.c @@ -36,7 +36,7 @@ Cambridge, MA 02139, USA. */ extern int errno; #endif -#if !__STDC__ +#if !__STDC__ && !defined(const) #define const #endif |