]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
qemu/bswap: Undefine CPU_CONVERT() once done
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 3 Oct 2024 16:59:09 +0000 (18:59 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 15 Oct 2024 14:55:09 +0000 (11:55 -0300)
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é <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20241003234211.53644-2-philmd@linaro.org>

include/qemu/bswap.h

index ad22910a5d1a022240ad68ed873af9736c6041e7..b915835bead0190a7a5fb642c37e6484e450545d 100644 (file)
@@ -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