From 70576f70f789d6161068fbe126f29ad976e029e9 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 31 Jul 2019 20:40:08 +0200 Subject: [PATCH] patch 8.1.1781: Amiga: no builtin OS readable version info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Amiga: no builtin OS readable version info. Solution: Add a "version" variable. (Ola Söder, closes #4753) --- src/os_amiga.c | 12 ++++++++++++ src/version.c | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/os_amiga.c b/src/os_amiga.c index 94355b81c7..fbe33de209 100644 --- a/src/os_amiga.c +++ b/src/os_amiga.c @@ -14,6 +14,7 @@ */ #include "vim.h" +#include "version.h" #ifdef Window # undef Window /* Amiga has its own Window definition */ @@ -108,6 +109,17 @@ int dos2 = FALSE; /* Amiga DOS 2.0x or higher */ #endif int size_set = FALSE; /* set to TRUE if window size was set */ +#ifdef __GNUC__ +static char version[] __attribute__((used)) = + "\0$VER: Vim " + VIM_VERSION_MAJOR_STR "." + VIM_VERSION_MINOR_STR +# ifdef PATCHLEVEL + "." PATCHLEVEL +# endif + ; +#endif + void win_resize_on(void) { diff --git a/src/version.c b/src/version.c index 15577e0fc1..855c0fe2ce 100644 --- a/src/version.c +++ b/src/version.c @@ -777,6 +777,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1781, /**/ 1780, /**/