From b7b8ffe87b317802ebd8f9e5ead833b7810e68d5 Mon Sep 17 00:00:00 2001 From: gdr Date: Wed, 8 Oct 1997 07:07:14 +0000 Subject: [PATCH] - started building with ORCA/C - changed OPSHIFT macro to use a (unsigned long) vs (unsigned) cast; this at least will compile now; ORCA/C was complaining about 'duplicate label in case statement'. --- lib/libc/regex/regex2.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/libc/regex/regex2.h b/lib/libc/regex/regex2.h index 64b6212..f300c94 100644 --- a/lib/libc/regex/regex2.h +++ b/lib/libc/regex/regex2.h @@ -35,6 +35,8 @@ * SUCH DAMAGE. * * @(#)regex2.h 8.4 (Berkeley) 3/20/94 + * + * $Id: regex2.h,v 1.2 1997/10/08 07:07:14 gdr Exp $ */ /* @@ -79,7 +81,11 @@ typedef unsigned long sop; /* strip operator */ typedef long sopno; #define OPRMASK 0xf8000000 #define OPDMASK 0x07ffffff +#ifdef __ORCAC__ /* a 32-bit-ism? */ +#define OPSHIFT ((unsigned long)27) +#else #define OPSHIFT ((unsigned)27) +#endif #define OP(n) ((n)&OPRMASK) #define OPND(n) ((n)&OPDMASK) #define SOP(op, opnd) ((op)|(opnd))