]> granicus.if.org Git - vim/commitdiff
patch 8.1.1781: Amiga: no builtin OS readable version info v8.1.1781
authorBram Moolenaar <Bram@vim.org>
Wed, 31 Jul 2019 18:40:08 +0000 (20:40 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 31 Jul 2019 18:40:08 +0000 (20:40 +0200)
Problem:    Amiga: no builtin OS readable version info.
Solution:   Add a "version" variable. (Ola Söder, closes #4753)

src/os_amiga.c
src/version.c

index 94355b81c75ebb14d1d83d9e45d8e51338eeefc6..fbe33de2090d329742f3936a80826250ebc842ee 100644 (file)
@@ -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)
 {
index 15577e0fc1ba68b81596d91ea014a0c2f7870b83..855c0fe2ce3b35f15d362af1dd5b2ab322d9e76d 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1781,
 /**/
     1780,
 /**/