diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-01-07 15:17:43 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-01-07 15:17:43 +0000 |
commit | d11a8ed9665ac62f1f4f092b5a3b9aa2aedccf35 (patch) | |
tree | e31a7924d106cb5cf732b7532a7264732d7af013 | |
parent | eb3a245fb54ae1163ed341082a46051c7ad62da4 (diff) |
Use __inline instead of inline as this header file might be included in a
"strict ansi" environment (even though it shouldn't be). Found out the hard
way by phessler@ with a port that uses gcc -ansi.
ok millert@, phessler@
-rw-r--r-- | sys/sys/_endian.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/_endian.h b/sys/sys/_endian.h index b87a1582b87..04c071feb10 100644 --- a/sys/sys/_endian.h +++ b/sys/sys/_endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _endian.h,v 1.6 2018/01/05 05:53:56 deraadt Exp $ */ +/* $OpenBSD: _endian.h,v 1.7 2018/01/07 15:17:42 kettenis Exp $ */ /*- * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. @@ -64,19 +64,19 @@ ((__uint64_t)(x) & 0xff00000000000000ULL) >> 56) #ifndef __HAVE_MD_SWAP -static inline __uint16_t +static __inline __uint16_t __swap16md(__uint16_t x) { return (__swap16gen(x)); } -static inline __uint32_t +static __inline __uint32_t __swap32md(__uint32_t x) { return (__swap32gen(x)); } -static inline __uint64_t +static __inline __uint64_t __swap64md(__uint64_t x) { return (__swap64gen(x)); |