diff options
author | gvf <gvf@cvs.openbsd.org> | 1997-04-17 14:57:32 +0000 |
---|---|---|
committer | gvf <gvf@cvs.openbsd.org> | 1997-04-17 14:57:32 +0000 |
commit | aa44648037870140a695cb9866ffdd5cb86e6d5f (patch) | |
tree | e79eb27742f9976199cf446ea6c6c976a35e5e55 /lib | |
parent | 307ff5f5bd1ba353d7eddc9ed4460d5017085b14 (diff) |
Fix __STDC__ macro handling of #, only hurt for mkdep not cpp due
to cpp's use of -traditional. NetBSD PR port-m68k/3222. Fix from
<horimoto@cs-aoi.cs.sist.ac.jp>.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/arch/m68k/SYS.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/arch/m68k/SYS.h b/lib/libc/arch/m68k/SYS.h index 58b7eec91a2..d181e5cef17 100644 --- a/lib/libc/arch/m68k/SYS.h +++ b/lib/libc/arch/m68k/SYS.h @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $OpenBSD: SYS.h,v 1.2 1996/08/19 08:13:51 tholo Exp $ + * $OpenBSD: SYS.h,v 1.3 1997/04/17 14:57:31 gvf Exp $ */ #include <sys/syscall.h> @@ -42,11 +42,14 @@ #ifdef __STDC__ +#define _IMMEDIATE_ # + #define SYSCALL(x) .even; err: jra cerror; ENTRY(x); \ - movl \#SYS_ ## x,d0; trap \#0; jcs err + movl _IMMEDIATE_ SYS_ ## x,d0; trap _IMMEDIATE_ 0; jcs err #define RSYSCALL(x) SYSCALL(x); rts -#define PSEUDO(x,y) ENTRY(x); movl \#SYS_ ## y,d0; trap \#0; rts +#define PSEUDO(x,y) ENTRY(x); movl _IMMEDIATE_ SYS_ ## y,d0; trap _IMMEDIATE_ 0; rts +#undef _IMMEDIATE_ #else /* !__STDC__ */ #define SYSCALL(x) .even; err: jra cerror; ENTRY(x); \ |