Check for defined(__i386__) instead of just defined(i386) since the compiler

will be updated to only define(__i386__) for ANSI cleanliness.
This commit is contained in:
Alfred Perlstein 2002-05-30 07:13:40 +00:00
parent 448f7629ea
commit 8e5e1ed874
2 changed files with 5 additions and 5 deletions

View file

@ -165,7 +165,7 @@ joyread(dev_t dev, struct uio *uio, int flag)
int state = 0;
struct timespec x, y;
struct joystick c;
#ifndef i386
#ifndef __i386__
int s;
s = splhigh();
@ -192,7 +192,7 @@ joyread(dev_t dev, struct uio *uio, int flag)
if (timespecisset(&x) && timespecisset(&y))
break;
}
#ifndef i386
#ifndef __i386__
splx(s);
#else
enable_intr ();

View file

@ -105,9 +105,9 @@ void nspattachsubr(struct nsp_softc *);
int nspprint(void *, const char *);
int nspintr(void *);
#if defined(i386)
#if defined(__i386__)
#define SOFT_INTR_REQUIRED(slp) (softintr((slp)->sl_irq))
#else /* !i386 */
#else /* !__i386__ */
#define SOFT_INTR_REQUIRED(slp)
#endif /* !i386 */
#endif /* !__i386__ */
#endif /* !_NSPVAR_H_ */