diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1999-10-26 03:43:49 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1999-10-26 03:43:49 +0000 |
commit | 66cfb0e720c28cad98e21ca55eab1d190522382e (patch) | |
tree | 3e13d71a1bb31ba5efaff89565250a99039a5850 /sys/arch/powerpc/include | |
parent | 343a6a0ed2d4c0d688ae9127aa271716707b2576 (diff) |
Fix inline function decls to work with C++.
Diffstat (limited to 'sys/arch/powerpc/include')
-rw-r--r-- | sys/arch/powerpc/include/disklabel.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/powerpc/include/disklabel.h b/sys/arch/powerpc/include/disklabel.h index 8056cfb0c46..93e2bd92243 100644 --- a/sys/arch/powerpc/include/disklabel.h +++ b/sys/arch/powerpc/include/disklabel.h @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.h,v 1.11 1999/03/23 16:36:18 millert Exp $ */ +/* $OpenBSD: disklabel.h,v 1.12 1999/10/26 03:43:48 downsj Exp $ */ /* * Copyright (c) 1994 Christopher G. Demetriou @@ -88,9 +88,15 @@ struct cpu_disklabel { #define DPSECT(s) ((s) & 0x3f) #define DPCYL(c, s) ((c) + (((s) & 0xc0) << 2)) +static __inline u_int32_t get_le __P((void *p)); + static __inline u_int32_t +#ifdef __cplusplus +get_le(void *p) +#else get_le(p) void *p; +#endif { u_int32_t c; u_int8_t *_p = (u_int8_t *)p; |