diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-12-06 11:19:37 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-12-06 11:19:37 +0000 |
| commit | 44e09d2fa2a11289f7eb5372f0da2bf69c48fdb7 (patch) | |
| tree | d4aab888a37abefaa2332f515bb2be9862352b91 /sys/dev/fb | |
| parent | bbce982bd545f98fe57f052416788da9912e2b55 (diff) | |
Notes
Diffstat (limited to 'sys/dev/fb')
| -rw-r--r-- | sys/dev/fb/fbreg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fb/fbreg.h b/sys/dev/fb/fbreg.h index 1e829460de34..684dfc11b74b 100644 --- a/sys/dev/fb/fbreg.h +++ b/sys/dev/fb/fbreg.h @@ -43,14 +43,14 @@ #define fillw_io(p, d, c) fillw((p), (void *)(d), (c)) void generic_bcopy(const void *s, void *d, size_t c); void generic_bzero(void *d, size_t c); -#elif __amd64__ +#elif defined(__amd64__) #define bcopy_io(s, d, c) bcopy((void *)(s), (void *)(d), (c)) #define bcopy_toio(s, d, c) bcopy((void *)(s), (void *)(d), (c)) #define bcopy_fromio(s, d, c) bcopy((void *)(s), (void *)(d), (c)) #define bzero_io(d, c) bzero((void *)(d), (c)) #define fill_io(p, d, c) fill((p), (void *)(d), (c)) #define fillw_io(p, d, c) fillw((p), (void *)(d), (c)) -#elif __ia64__ +#elif defined(__ia64__) #include <machine/bus.h> #define bcopy_fromio(s, d, c) \ bus_space_read_region_1(IA64_BUS_SPACE_MEM, s, 0, (void*)(d), c) @@ -75,7 +75,7 @@ fillw(int val, uint16_t *buf, size_t size) while (size--) *buf++ = val; } -#elif __powerpc__ +#elif defined(__powerpc__) #define bcopy_io(s, d, c) ofwfb_bcopy((void *)(s), (void *)(d), (c)) #define bcopy_toio(s, d, c) ofwfb_bcopy((void *)(s), (void *)(d), (c)) |
