From 5d86dfccb5b23ecea299515728ecf5d831ac82ef Mon Sep 17 00:00:00 2001 From: Ingo Paschke Date: Mon, 11 May 2026 17:05:13 +0200 Subject: [PATCH] Amiga: replace WINVERS_AMI* strcmp with WINDOWPORT() id compare The macros were strcmp("amiv", windowprocs.name)==0 at every reference -- 72 sites including inner loops. Use the 5.0 core's WINDOWPORT(wn) which compares wp_id. --- sys/amiga/windefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amiga/windefs.h b/sys/amiga/windefs.h index 3cd04ee5d..234d213a8 100644 --- a/sys/amiga/windefs.h +++ b/sys/amiga/windefs.h @@ -55,8 +55,8 @@ CLIPPING must be defined for the AMIGA version #include -#define WINVERS_AMII (strcmp("amii", windowprocs.name) == 0) -#define WINVERS_AMIV (strcmp("amiv", windowprocs.name) == 0) +#define WINVERS_AMII WINDOWPORT(amii) +#define WINVERS_AMIV WINDOWPORT(amiv) /* cw->data[x] contains 2 characters worth of special information. These * characters are stored at the offsets as described here.