GNU text utilities getopt-macros
authorJim Meyering <jim@meyering.net>
Thu, 19 Nov 1992 20:51:13 +0000 (20:51 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 19 Nov 1992 20:51:13 +0000 (20:51 +0000)
lib/regex.c
lib/regex.h
lib/strtol.c

index 3129ed4..71aa4cc 100644 (file)
@@ -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)
index 87824ef..ef8e9a3 100644 (file)
 #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
index 09d8f86..d91db4b 100644 (file)
@@ -36,7 +36,7 @@ Cambridge, MA 02139, USA.  */
 extern int errno;
 #endif
 
-#if !__STDC__
+#if !__STDC__ && !defined(const)
 #define const
 #endif