From 5bd9646fe6e2ac124c5ea5324048e615f019ab66 Mon Sep 17 00:00:00 2001 From: kettenis Date: Sun, 7 Jan 2018 15:17:42 +0000 Subject: [PATCH] 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@ --- sys/sys/_endian.h | 8 ++++---- 1 file 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)); -- 2.20.1