On Mon, Feb 03, 2025 at 02:14:14PM +0800, Yuqian Yang wrote: > On 2025-02-03 12:58, Zhaoming Luo wrote: > > > ... I haven't found a > > practical method to track where the BSD macro is defined during > > compilation. > > It is defined in `/usr/include/x86_64-gnu/bits/param.h'. > > The including chain is, > > vim/src/evalfunc.c > vim/src/os_unix.h > /usr/include/x86_64-gnu/sys/param.h > /usr/include/x86_64-gnu/bits/param.h > > In /usr/include/x86_64-gnu/bits/param.h: > #define BSD 199306
Cool how to you find it? > > Though I don't know why there is a macro BSD, vim seems to use it > to detect BSD. > > -- > Yuqian Yang <crup...@crupest.life>