Hi all,

This patch fails to compile if FEAT_LOCALMAP is not defined:

<snip>
gcc -c -Iproto -DWIN32 -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 -DHAVE_PATHDEF -DFEAT_BIG -DFEAT_MBYTE -pipe -w -
march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return -s getchar.c -o obj/getchar.o
getchar.c: In function 'check_map':
getchar.c:5089:21: error: 'local' undeclared (first use in this function)
getchar.c:5089:21: note: each undeclared identifier is reported only once for each function it appears in
make: *** [obj/getchar.o] Error 1
</snip>

The attached patch seems to fix it.

Cheers
John

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
*** src/getchar.c       2010-10-21 08:24:33.000000000 +1100
--- src/getchar_new.c   2010-10-21 08:47:07.000000000 +1100
***************
*** 5085,5092 ****
--- 5085,5094 ----
                    {
                        if (mp_ptr != NULL)
                            *mp_ptr = mp;
+ #ifdef FEAT_LOCALMAP
                        if (local_ptr != NULL)
                            *local_ptr = local;
+ #endif
                        return mp->m_str;
                    }
                }

Raspunde prin e-mail lui