summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb/fbreg.h
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-12-06 11:19:37 +0000
committerru <ru@FreeBSD.org>2005-12-06 11:19:37 +0000
commit3db1ffb04091aeb5cbd6b87a4fa136442d8d3bc9 (patch)
treed4aab888a37abefaa2332f515bb2be9862352b91 /sys/dev/fb/fbreg.h
parentf5b3d1a6c477ee8fd2cbe84115ae58ada92829f8 (diff)
downloadFreeBSD-src-3db1ffb04091aeb5cbd6b87a4fa136442d8d3bc9.zip
FreeBSD-src-3db1ffb04091aeb5cbd6b87a4fa136442d8d3bc9.tar.gz
Fix -Wundef warnings from compiling GENERIC and LINT kernels of
all architectures.
Diffstat (limited to 'sys/dev/fb/fbreg.h')
-rw-r--r--sys/dev/fb/fbreg.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fb/fbreg.h b/sys/dev/fb/fbreg.h
index 1e82946..684dfc1 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))
OpenPOWER on IntegriCloud