From: Philippe Mathieu-Daudé Date: Thu, 3 Oct 2024 16:59:09 +0000 (+0200) Subject: qemu/bswap: Undefine CPU_CONVERT() once done X-Git-Tag: v9.2.0-rc0~46^2~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d73353f236209e9b5987d7c6b30b2a32b739210;p=thirdparty%2Fqemu.git qemu/bswap: Undefine CPU_CONVERT() once done Better undefined macros once we are done with them, like we do few lines later with DO_STN_LDN_P(). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Message-Id: <20241003234211.53644-2-philmd@linaro.org> --- diff --git a/include/qemu/bswap.h b/include/qemu/bswap.h index ad22910a5d1..b915835bead 100644 --- a/include/qemu/bswap.h +++ b/include/qemu/bswap.h @@ -140,6 +140,8 @@ CPU_CONVERT(le, 16, uint16_t) CPU_CONVERT(le, 32, uint32_t) CPU_CONVERT(le, 64, uint64_t) +#undef CPU_CONVERT + /* * Same as cpu_to_le{16,32,64}, except that gcc will figure the result is * a compile-time constant if you pass in a constant. So this can be