summaryrefslogtreecommitdiff
path: root/src/os_amiga.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-07-31 20:40:08 +0200
committerBram Moolenaar <Bram@vim.org>2019-07-31 20:40:08 +0200
commit70576f70f789d6161068fbe126f29ad976e029e9 (patch)
tree80df44e6a7772b23270e9566952f840346163e98 /src/os_amiga.c
parent674e2bde6e7b0c468f304713aa8f97a45e1fcc89 (diff)
downloadvim-git-70576f70f789d6161068fbe126f29ad976e029e9.tar.gz
patch 8.1.1781: Amiga: no builtin OS readable version infov8.1.1781
Problem: Amiga: no builtin OS readable version info. Solution: Add a "version" variable. (Ola Söder, closes #4753)
Diffstat (limited to 'src/os_amiga.c')
-rw-r--r--src/os_amiga.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/os_amiga.c b/src/os_amiga.c
index 94355b81c..fbe33de20 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)
{