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:
@@ -214,7 +214,7 @@ mch_char_avail(void)
|
||||
long_u
|
||||
mch_avail_mem(int special)
|
||||
{
|
||||
#ifdef __amigaos4__
|
||||
#if defined(__amigaos4__) || defined(__AROS__) || defined(__MORPHOS__)
|
||||
return (long_u)AvailMem(MEMF_ANY) >> 10;
|
||||
#else
|
||||
return (long_u)(AvailMem(special ? (long)MEMF_CHIP : (long)MEMF_ANY)) >> 10;
|
||||
|
@@ -769,6 +769,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1836,
|
||||
/**/
|
||||
1835,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user