On Mon, Feb 03, 2025 at 07:39:25AM +0100, Samuel Thibault wrote: > Yuqian Yang, le lun. 03 févr. 2025 14:37:16 +0800, a ecrit: > > On 2025-02-03 14:24, Zhaoming Luo wrote: > > > Cool how to you find it? > > > > Not a very wise way. Track codes, search with grep or other tools. > > > > gcc preprocessor can do this with gcc -E. But it does not work for > > system headers. > > You can #define BSD foobar and check the conflicting error message.
It's a good method. Zhaoming