changeset 1579:bcd84459e68a

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Sun, 15 Nov 1992 10:30:58 +0000
parents 8c779144d540
children f67f847064dc
files src/regex.c src/regex.h
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/regex.c	Tue Nov 10 23:12:23 1992 +0000
+++ b/src/regex.c	Sun Nov 15 10:30:58 1992 +0000
@@ -135,7 +135,11 @@
    (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)
--- a/src/regex.h	Tue Nov 10 23:12:23 1992 +0000
+++ b/src/regex.h	Sun Nov 15 10:30:58 1992 +0000
@@ -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