]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0680: VMS does not have defined uintptr_t v9.1.0680
authorZoltan Arpadffy <zoltan.arpadffy@gmail.com>
Sun, 18 Aug 2024 14:59:20 +0000 (16:59 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 18 Aug 2024 14:59:20 +0000 (16:59 +0200)
Problem:  VMS does not have defined uintptr_t
Solution: Add type definitions (Zoltan Arpadffy)

closes: #15520

Signed-off-by: Zoltan Arpadffy <zoltan.arpadffy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/evalfunc.c
src/version.c

index 52ac48cbf2e5d35f234bfe5b0ce422e87eb6f2ee..173b544b3219c2c799d4727a2218141826b66f06 100644 (file)
@@ -7541,6 +7541,14 @@ f_hostname(typval_T *argvars UNUSED, typval_T *rettv)
  * Currently only valid for object/container types.
  * Return empty string if not an object.
  */
+#ifdef VMS // VMS does not have defined uintptr_t
+# if defined(HAVE_NO_LONG_LONG)
+typedef unsigned int uintptr_t;
+# else
+typedef unsigned long long uintptr_t;
+# endif
+#endif // VMS
+
     static void
 f_id(typval_T *argvars, typval_T *rettv)
 {
index 798e5584570402faf3cf86c8925b249803252c6e..8965dbca823359abb4e5f7a18097706eee9b15b6 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    680,
 /**/
     679,
 /**/