1
0
forked from aniani/vim

patch 8.1.1836: inaccurate memory estimate for Amiga-like OS

Problem:    Inaccurate memory estimate for Amiga-like OS.
Solution:   Adjust #ifdef for AvailMem(). (Ola Söder, closes #4797)
This commit is contained in:
Bram Moolenaar
2019-08-10 14:54:20 +02:00
parent fd8ca21b3f
commit a9ab391a3a
2 changed files with 3 additions and 1 deletions

View File

@@ -214,7 +214,7 @@ mch_char_avail(void)
long_u long_u
mch_avail_mem(int special) mch_avail_mem(int special)
{ {
#ifdef __amigaos4__ #if defined(__amigaos4__) || defined(__AROS__) || defined(__MORPHOS__)
return (long_u)AvailMem(MEMF_ANY) >> 10; return (long_u)AvailMem(MEMF_ANY) >> 10;
#else #else
return (long_u)(AvailMem(special ? (long)MEMF_CHIP : (long)MEMF_ANY)) >> 10; return (long_u)(AvailMem(special ? (long)MEMF_CHIP : (long)MEMF_ANY)) >> 10;

View File

@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1836,
/**/ /**/
1835, 1835,
/**/ /**/