|
From: | Richard Henderson |
Subject: | Re: [PATCH 4/4] qemu/bswap: Remove <byteswap.h> dependency |
Date: | Fri, 25 Sep 2020 08:25:35 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 9/25/20 2:22 AM, Philippe Mathieu-Daudé wrote: > Looking at FreeBSD, bswap*() are defined as macro: > https://github.com/freebsd/freebsd/blob/master/sys/sys/endian.h#L58 That works for me. > So theoretically they could change the prototype still respecting > the documentation contract, and undefines wouldn't work anymore. But we'd be #defining our own macros that would mean that the out-of-line functions would never be used. So it still works. r~
[Prev in Thread] | Current Thread | [Next in Thread] |