From 02f8d2ebd5cbccb5f04e5764bd4ffdaf3db6fd50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ola=20S=C3=B6der?= Date: Sun, 28 Sep 2025 17:48:43 +0000 Subject: [PATCH] patch 9.1.1803: Amiga: build errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Amiga: build errors Solution: Update preprocessor conditionals (Ola Söder). closes: #18423 Signed-off-by: Ola Söder Signed-off-by: Christian Brabandt --- src/findfile.c | 5 ++++- src/globals.h | 2 +- src/structs.h | 2 +- src/version.c | 2 ++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/findfile.c b/src/findfile.c index 008338cdae..c1318384e4 100644 --- a/src/findfile.c +++ b/src/findfile.c @@ -2979,9 +2979,12 @@ simplify_filename(char_u *filename) p = getnextcomp(p); } } while (*p != NUL); -#endif // !AMIGA return (size_t)(p_end - filename); +#else + // Don't touch Amiga filenames + return STRLEN(filename); +#endif // !AMIGA } #if defined(FEAT_EVAL) || defined(PROTO) diff --git a/src/globals.h b/src/globals.h index 653690b000..5e2f7b0f46 100644 --- a/src/globals.h +++ b/src/globals.h @@ -248,7 +248,7 @@ EXTERN int did_wait_return INIT(= FALSE); // wait_return() was used and EXTERN int need_maketitle INIT(= TRUE); // call maketitle() soon EXTERN int quit_more INIT(= FALSE); // 'q' hit at "--more--" msg -#if defined(UNIX) || defined(VMS) || defined(MACOS_X) +#if defined(UNIX) || defined(VMS) || defined(MACOS_X) || defined(AMIGA) EXTERN int newline_on_exit INIT(= FALSE); // did msg in altern. screen EXTERN int intr_char INIT(= 0); // extra interrupt character #endif diff --git a/src/structs.h b/src/structs.h index 72838bda2f..fd752109f5 100644 --- a/src/structs.h +++ b/src/structs.h @@ -5230,7 +5230,7 @@ typedef struct #define KEYVALUE_ENTRY(k, v) \ {(k), {((char_u *)v), STRLEN_LITERAL(v)}} -#if defined(UNIX) || defined(MSWIN) || defined(VMS) +#if defined(UNIX) || defined(MSWIN) || defined(VMS) || defined(AMIGA) // Defined as signed, to return -1 on error struct cellsize { int cs_xpixel; diff --git a/src/version.c b/src/version.c index 4d03167a73..ecf543523a 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1803, /**/ 1802, /**/