Guard the native endian definitions we want to remove by surrounding them with TARGET_USE_LEGACY_NATIVE_ENDIAN_API #ifdef'ry.
Once a target gets cleaned we'll unset the definition in the target config, then the target won't be able to use the legacy API anymore. Signed-off-by: Philippe Mathieu-Daudé <[email protected]> --- include/exec/memop.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/exec/memop.h b/include/exec/memop.h index 799b5b42218..3545592765f 100644 --- a/include/exec/memop.h +++ b/include/exec/memop.h @@ -36,11 +36,13 @@ typedef enum MemOp { MO_BE = MO_BSWAP, #endif #ifdef COMPILING_PER_TARGET +#ifdef TARGET_USE_LEGACY_NATIVE_ENDIAN_API #if TARGET_BIG_ENDIAN MO_TE = MO_BE, #else MO_TE = MO_LE, #endif +#endif #endif /* @@ -150,6 +152,7 @@ typedef enum MemOp { MO_BESQ = MO_BE | MO_SQ, #ifdef COMPILING_PER_TARGET +#ifdef TARGET_USE_LEGACY_NATIVE_ENDIAN_API MO_TEUW = MO_TE | MO_UW, MO_TEUL = MO_TE | MO_UL, MO_TEUQ = MO_TE | MO_UQ, @@ -157,6 +160,7 @@ typedef enum MemOp { MO_TESW = MO_TE | MO_SW, MO_TESL = MO_TE | MO_SL, MO_TESQ = MO_TE | MO_SQ, +#endif #endif MO_SSIZE = MO_SIZE | MO_SIGN, -- 2.52.0
