diff options
author | 2018-01-07 15:17:42 +0000 | |
---|---|---|
committer | 2018-01-07 15:17:42 +0000 | |
commit | 5bd9646fe6e2ac124c5ea5324048e615f019ab66 (patch) | |
tree | b798caae87c9fee0363c32a296df5307ad54b881 | |
parent | add arch to Dt; (diff) | |
download | wireguard-openbsd-5bd9646fe6e2ac124c5ea5324048e615f019ab66.tar.xz wireguard-openbsd-5bd9646fe6e2ac124c5ea5324048e615f019ab66.zip |
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)); |